I have to watch the keyboard during rendering. So, is there a way to force glut to invoke the Keyboard callback immediately?
|
|
I'm unclear as to when exactly you think "immediately" is in this context, or what you're actually trying to do by "watching the keyboard during rendering." But given that you must have known what function is actually being assigned to the keyboard callback (since you had to pass to the No flavor of GLUT that I'm aware of has the ability to manually invoke the callback indirectly. |
|||||
|
Fullstop here. Go over your code again and rethink how stuff works. Logic and rendering should be strictly seperated. There should no situation what-so-ever arise for you to need to check the input during the rendering calls. Rendering doesn't compute input. It just works with what's being given to it. |
|||
|
|