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:
Post a Comment