[fpc-pascal] Moving callbackfunctions to class
Honza
befelemepeseveze at gmail.com
Thu Dec 30 18:01:10 CET 2010
2010/12/30 Darius Blaszyk <dhkblaszyk at zeelandnet.nl>:
> Though I understand the error, I do not know if there is a way to circumvent
> this?
I guess: In the callback you have to get the current window id using
glutGetWindow, then dispatch the call to the right object instance
using that id via some kind of mapping from window ids to instances.
cf: "Before the callback, the current window is set to the window
needing to be redisplayed...", src:
http://www.opengl.org/resources/libraries/glut/spec3/node46.html
--
bflm
freepascal-bits.blogspot.com
More information about the fpc-pascal
mailing list