Advertisement

Glut - HELP!!!

Started by December 18, 2003 01:47 AM
0 comments, last by DEMONsionX 21 years, 2 months ago
Let''s say I have drawn stuff (like cubes and pyramids) in a window. Now, I would like to completely get rid of that stuff and draw something else, without destroying and recreating the window if possible. How can I do that? Thanks. DEMONsionX
call
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); 
before rendering and
	glutSwapBuffers();  

after you render your objects.

[edited by - dede on December 18, 2003 2:54:50 AM]
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn

This topic is closed to new replies.

Advertisement