PDA

View Full Version : controlling the minimum window dimention with glut



gurkama
02-24-2005, 08: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, 12:47 PM
I don't know, you could probably do this in the resize handler that you write.

dvm
02-24-2005, 01: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-24-2005, 11:36 PM
Sure you can. Use glutReshapeWindow(yourWidth, yourHeight) in the resize handler.

gurkama
02-25-2005, 11:07 PM
Thanks :)