How to reset the OpenGL window?

I have drawn a 3D model in the window,but I don’t know how to reset the window to the initial state?Anyone can help me?


one way would be to stick around the code

glPushAtrribs( GL_ALL_ATTRIB_BITS );


ie after the pop the state before the push will be restored