Sign in to follow this  

OpenGL Question about scene animation.

Recommended Posts

Hi. I'm using Glut for window/render... management. I'm building a opengl app where I load textures onto 2d surfaces represented as GL_QUADS. My programming logic is to execute threads called scenes animation. Each scene would have 'n' number of models and it's respected translations/rotations/whatnot, which would make up the scene animation. My problem is how to implement this in the "render" callback function. i.e glutDisplayFunc(render); i.e. I need to call specific "SceneAnimation" after some event occurs. Like user presses mouse button or something else. How do I merge this event into "render" callback function.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this