PDA

View Full Version : Lock window sizes



shawn619
05-01-2013, 09: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)?

tonyo_au
05-01-2013, 09: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.

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