glutReshapeFunc(&OpenGLRenderer::sresize);
glutDisplayFunc(&OpenGLRenderer::srender);
glutMainLoop(); // why doesn't glut call the Display Func?
Thanks.
Why isn't the window redrawn?
Hi, I have problem getting the opengl to render in windows.
My code renders the the initial screen alright but after that no redrawing occurs.
What else is needed (than these three lines) to make the window update in regular basis?
I have never used glut, and this may be a longshot but, are you using glutSwapBuffers or something similar to swap front and back buffers?
The display func will only be called when redrawing is required. That means something about the window must have changed, because glut can't know about anything but that. Use the idle func instead.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement