Reputation: 325
What I am trying to do is get a couple of textures from my program and render them into one texture and send it back, but I only want it to render them when I tell it to. Is there some way to get rid of opengl's main loop so I can render when I want it to, or can I pause the main loop until I want to render the next texture?
Edit: I'm using Glut and Glew right now.
Upvotes: 2
Views: 268
Reputation: 8836
OpenGL has no main loop. Are you using some kind of framework? What makes you think you cannot control when renders happen? You should have control over when you swap buffers or call glFlush()
. It sounds more like you need to simply better understand C++ control structures, but it's hard to know with the severely limited information presented in your question.
Upvotes: 7