View Full Version : Stupid Query

07-27-2010, 01:27 AM
Hi,today is my first day with OpenGL,and I don't know coding that well.
But since we have it in a course in college,I need to learn it.

I have a weird problem with OpenGL.
Somehow,everytime I run even the simplest program to display a
wireframe teapot,it doesn't render the window size properly.
Neither does glutInitWindowPosition(50,50); seem to work

Have I made a mistake in initializing something?
(This is the first time I have ever used OpenGL,so please bear with me,if its a stupid question)

07-27-2010, 02:14 AM
From the doc :
These set values for future windows, created later.
Just move glutCreateWindow("hello"); to right before glutMainLoop.

Furthermore, do not expect position to be always accepted, nor size to be always exactly as requested, read the doc again.