Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

Constant Update

Started by MrPickle Aug 27, 2008 at 11:07 AM 1 replies 700+ views
Original Post
MrPickle
MrPickle
Is there a better/safer way of constantly redrawing the scene without calling gultPostRedisplay();? I have a basic flag waving in the wind motion but it only updates when I move the the camera which causes glutPostRedisplay() to be called. I added glutPostRedisplay() at the end of my draw function so that it always updates but this seems like a bad way to do it to me.
Here to learn :)
mrbastard
mrbastard
passa callback to idle func that calls your draw function.
[size="1"]
MrPickle
MrPickle
Ahh, thank you.
Here to learn :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.