PDA

View Full Version : controlling the minimum window dimention with glut



gurkama
02-24-2005, 09:49 AM
Hi all

Can I control the minimum dimentions of the window with glut?
I use glutCreateWindow, and I want to prevent the user from resizing it to too-small dimentions.

Thanks

dorbie
02-24-2005, 01:47 PM
I don't know, you could probably do this in the resize handler that you write.

dvm
02-24-2005, 02:08 PM
I think that you can't. I'm not 100% sure though. I guess you'd have to use the windowing system's functions to accomplish that.

MMMovania
02-25-2005, 12:36 AM
Sure you can. Use glutReshapeWindow(yourWidth, yourHeight) in the resize handler.

gurkama
02-26-2005, 12:07 AM
Thanks :)