Resizing window to create more viewable area

Started by
2 comments, last by jollyjeffers 15 years, 5 months ago
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.
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?
Visual C++ with directx 9

Cheers
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

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

This topic is closed to new replies.

Advertisement