View Full Version : Lock window sizes

05-01-2013, 08:15 AM
A couple questions about window sizes in OpenGL and GLUT:

(1) How can i lock a window at 720x480 OR fullscreen(windowed)? (ie: take over manual resize and only have maximize/minimize)

(2) How can i lock a window at 720x480? (take away resize AND maximize button)

(3) How can i lock a window at fullscreen(windowed)?

05-01-2013, 08:35 PM
These are not strictly OpenGL problems; GLUT is only meant as a shell on the operating system window creation of a simple winodw; you need to trap resize events to stop a window resize.

05-01-2013, 09:31 PM
Oh ok, what would I need to do to trap resize events?