Link to home
Start Free TrialLog in
Avatar of OliWarner
OliWarner

asked on

Glut full screen

Any ideas on how to make a currently windowed glut app a fullscreen app?
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Just match coordinates of window with screen coordinates. Use WINAPI's GetSystemMetrics() function to obtain current screen size in pixels, and also other dimensions like title bar height, window border size, etc.
By example, if GetSystemMetrics returns you 1024 and 768, your window coordinates must be something like

(-5,-25,1029,773)
Avatar of OliWarner
OliWarner

ASKER

is there any way of forcing the screenmode to change so it takes up the entire screen... like any modern game does...
ASKER CERTIFIED SOLUTION
Avatar of jhshukla
jhshukla
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial