Google Search

Thursday, April 7, 2011

DISPLAY WINDOWS IN OPEN GL


• Don’t forget to initialize GLUT with glutInit.


• Create a window of specified size in a particular position on the screen with
glutInitWindowPosition( xTopLeft, yTopLeft);
glutInitWindowSize( dwWidth, dwHeight);
glutCreateWindow( "Title");

• Default position is (−1,−1) which allows the window system to choose the
position.

• Default size is 300 pixels square.

• glutCreateWindow returns an integer id for the window. You only need this
if you are displaying more than one window.

No comments:

referal link