Skip to main content
gamedev.net
🔒 Locked

Resizing window function

Started by Scooter Apr 16, 2001 at 9:43 PM 2 replies 600+ views
Original Post
Scooter
Scooter
Hey I need help with a simple ReSize() method to keep my scene in proportion when the window is resized. Any help apprectiated. Thanks. (DirectX 8) Win32
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
ninja770
ninja770
just keep your perspective settings dependent upon the size of the window

-----------------------------
I''m almost finished my 3D Engine for the TI-83 calculator
-----------------------------;)I'm almost finished my 3D Engine for the TI-83 calculator ;)
Scooter
Scooter
ok sooo.. on the WM_SIZE message get the window''s rectangle coordinates and reset the perspective based on those new coordinates ? ?
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
Sir Melvalot
Sir Melvalot
Yes, just appropriatly change the Projection matrix to account for the new aspect ratio whenever you get the WM_SIZE message.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.