----- Original Message ----- From: "Graeme Geldenhuys" <graemeg.li...@gmail.com>
To: "FPC-Pascal users discussions" <fpc-pascal@lists.freepascal.org>
Sent: Thursday, October 29, 2009 7:51 PM
Subject: Re: [fpc-pascal] X, Y co-ordinate system under OS/2


On 29/10/2009, Juha Manninen <juha.manni...@phnet.fi> wrote:

If done right, the code doing coordinate conversion should be in library
 Canvas class, not in application code.

That's how I would have implemented in it fpGUI as well. The higher
level code uses x, y as normal. The drawing backend code does
conversions if needed.

That's how I handle differences between Windows GDI API and XLib API.

--
Regards,
 - Graeme -

Very good points, and I completely agree :)
I was only doing a quick "hack" so I could get something working in a short time ;)

BTW, I found these very interesting articles about IMGUI (Immediate Mode GUI) systems (which I am using in my game):

http://www.johno.se/book/imgui.html
http://sol.gfxile.net/imgui/index.html

and a forum about IMGUs
http://www.mollyrocket.com/forums/viewforum.php?f=10

Perhaps this might help someone, except maybe Graeme "fpGUI" Geldenhuys LOL! ;P

cheers,
Paul
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to