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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to