Jump to content
  • Advertisement
Sign in to follow this  
icethelog

Resizing window to create more viewable area

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

When I resize my window, the same area is viewed and stretched to still fit the window. I want to be able to resize my window, and just see more of the world accordingly without moving or stretching anything.

Share this post


Link to post
Share on other sites
Advertisement
You'll need to handle notifications that your window is being resized, and then resize your backbuffer and projection parameters accordingly.

What language and exact API are you using?

Share this post


Link to post
Share on other sites
You'll need to find some way of manipulating the projection and/or view matrix in relation to the size of the window.

A simple one would be to set the perspective field of view to be relative to a dimension of the window (e.g. diagonal) but the zooming nature of this might not be ideal in all cases...


hth
Jack

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!