Hello all,
Is there a way for me to find out if/when OpenGL is finished after I call glFlush()? Maybe there’s a simple way to do this and I’m just not searching for it in the right way, but I can’t seem to find any info on such a thing. If there was a “glFinished()”, here’s what I would like to do:
while ( simulationRunning )
{
DoSetupStuff();
glBegin();
Render();
glEnd();
glFlush();
DoMiscOtherStuff();
if ( TRUE == glFinished() ) // Here!
{
SwapBuffers();
ProcessSimulation();
}
else
{
ProcessSimulation();
GLFinish(); // Wait if needed.
SwapBuffers();
}
}
I have some very good reasons for wanting to do this (and not just processing the same way every pass through the loop).
Thanks in advance!