[fpc-pascal] X, Y co-ordinate system under OS/2
Paul Nicholls
paulfnicholls at gmail.com
Thu Oct 29 22:34:52 CET 2009
----- Original Message -----
From: "Graeme Geldenhuys" <graemeg.lists at gmail.com>
To: "FPC-Pascal users discussions" <fpc-pascal at 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.manninen at 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
More information about the fpc-pascal
mailing list