[fpc-pascal] X, Y co-ordinate system under OS/2
Juha Manninen
juha.manninen at phnet.fi
Thu Oct 29 09:36:22 CET 2009
Hi,
> I'm making a simple GUI system for a game, and I needed to have screen
> origin independant input coordinates for the GUI (simpler to think about
> when using), and can be used in different world coordinate systems.
If done right, the code doing coordinate conversion should be in library
Canvas class, not in application code.
It is supposed to be portable, right...
It can also be optimized with conditional compilation. The conversion is
needed only when compiling for OS/2 and so other systems wouldn't get even the
small performance hit the conversion causes.
Regards,
Juha Manninen
More information about the fpc-pascal
mailing list