PDA

View Full Version : Finding screen dimensions



t3jem
09-06-2005, 06:13 PM
Hi,

Im using the glut utility kit and in my program i can switch from fullscreent to windowed mode, but i dnt use the gamemode feature. My problem is that i use the mouse in the program and i need to be able to find the dimensions of the screen when going into fullscreen mode to get the mouse in the right spot.

All responses are greatly apreciated

Hlz
09-06-2005, 08:41 PM
but i dnt use the gamemode featureWhy not, and what did you use?

t3jem
09-07-2005, 05:18 AM
I don't use the game mode feature because I have not quite gotten a handle on all the commands to use it. I've used it before and I couldn't figure out how to get my program back into window mode. I am using the "glutFullscreen();" command to place my program into fullscreen mode.

RigidBody
09-07-2005, 10:46 AM
glutGet(GLUT_SCREEN_WIDTH) (http://www.opengl.org/resources/libraries/glut/spec3/node70.html#SECTION000101000000000000000)

t3jem
09-07-2005, 02:40 PM
thanks a ton Rigid body

Hlz
09-08-2005, 05:42 PM
You may also find this handy:
http://www.opengl.org/documentation/specs/glut/spec3/spec3.html