OpenGL doublebuffer problem...
Hi
I''m new to OpenGL and writing my first ''test'' programm and I have the following problem:
The program is supposed to show a rotating cube. With one buffer and glFlush() everything worked well. But then I added the PFD_DOUBLEBUFFER flag and SwapBuffers(hdc) funcion. And now the cube don''t rotate anymore, it''s shown in it''s start position but don''t move. Just when I resize the window it''s shown in the position it would have reached in the time. I''don''t know where the fault is, may be you know.
Please help me
P.S.: SwapBuffers() is called everytime it should and return TRUE
May the force be with you
May 18, 2000 11:31 AM
sound like you call your "render scene" in windows callback handler under REDRAW/REPAINT/RESIZE....??? or you use GLUT to trigger repaint in a wrong way....???
you have something like:
init opengl
while( not exit )
{
clear buffer
render scene
swap buffer
}
??
you have something like:
init opengl
while( not exit )
{
clear buffer
render scene
swap buffer
}
??
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement