Jump to content
  • Advertisement
Sign in to follow this  
nickme

glut:is there a way not to let user change the size of the window?

This topic is 2509 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi,
i would like to know whether there is a way not letting user change the size of the window that i openned. for example, not letting the user drag the edgge of the window to enlarge or shrink the window.

help will be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
There is no way to prevent the user from resizing the window. Instead, change the window back to its original size once you receive a resize callback.

Share this post


Link to post
Share on other sites
hi

There is no way to prevent the user from resizing the window. Instead, change the window back to its original size once you receive a resize callback.


how do i do that? by closing (destroy) the window and reopen it again?

thanks

Share this post


Link to post
Share on other sites
GLUT is a very simple library to get up and running with OpenGL. However, it tends to lack any features not directly aimed at that goal. If you feel you need more control than it offers, something like SDL can be just as simple, but without compromising on flexibility.

Share this post


Link to post
Share on other sites

hi
[quote name='Brother Bob' timestamp='1328004778' post='4907942']
There is no way to prevent the user from resizing the window. Instead, change the window back to its original size once you receive a resize callback.


how do i do that? by closing (destroy) the window and reopen it again?

thanks
[/quote]
You call glutReshapeWindow.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!