google search

Tuesday, October 5, 2010

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.

0 comments:

  © Blogger templates ProBlogger Template by Ourblogtemplates.com 2008

Back to TOP