[fpc-pascal] Moving callbackfunctions to class
Reimar Grabowski
reimgrab at web.de
Fri Dec 31 14:23:39 CET 2010
On Fri, 31 Dec 2010 14:03:27 +0100
Darius Blaszyk <dhkblaszyk at zeelandnet.nl> wrote:
> Unfortunately I need a platform independent method to handle this. So assembler is not really the way I want to go, unless it proves to be the only way.
Now you know why I called glut a major PITA and using platform dependent assembler code to wrap a cross platform lib is just not right. Why don't you look at the context creation code of either TOpenGLContext from Lazarus or the equivalent component from GLScene (yes, it is more difficult than glut but not that difficult)? Glut is just not meant for the things you are doing with it and you are working around restrictions which other context creation mechanisms just don't have. But feel free to ignore my advice as it is your time you are wasting.
Happy new year and good luck.
R.
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the fpc-pascal
mailing list