PDA

View Full Version : get windows size in opengl



topcoder
09-09-2002, 05:41 PM
hi,
i have to display the window size of the current open window by printing the size in it. how do i do it? what opengl/glut functions do i use? i also have reshapefunc in my program. i can also use that to get the size, but i dont know how. thanks for yr help.

pleopard
09-09-2002, 07:32 PM
glutGet(GLUT_WINDOW_WIDTH)
glutGet(GLUT_WINDOW_HEIGHT)