Jump to content
  • Advertisement
Sign in to follow this  
Codorke

Window Resizing

This topic is 4902 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

Hey, I'm looking for a functions that can give me the current height and width of my activated window. For Example : function makeTextures() { -> retrieve window height and width; -> ReSizeGLWindow(new height, new width); -> Do Some texturing code -> ReSizeGLWindow(old height, old width); } I searched through the MDSN but didn't found a function like this. Maybe i looked over it. Does there excists a function for this ? Thanks in advance, Codorke

Share this post


Link to post
Share on other sites
Advertisement
Try looking for 'GetWindowRect' and 'GetClientRect' on MSDN, they'll give you what you need.

Generally it would be a lot easier to just store the sizes of the window when you make the call to create it. If you want the client size then you'll have to modify the sizes to reflect the window borders and title bar.

Hope that helped :)

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!