Jump to content
  • Advertisement
Sign in to follow this  
Magos

Render to variable sized target

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

Is it possible to render to a variable sized target. When setting things up you either specify a hard coded size or use the size of a target window. But if the window is resizeable the rendering will be stretched instead of resized. Is there some solution to this? Or at least a decent workaround? I need pixel perfect resolution so using a too large buffer and shrinking it is not an option. Using Direct3D9.

Share this post


Link to post
Share on other sites
Advertisement
Reset D3D device to create a new backbuffer with new window size.
Then set a proper projection matrix for your new window size.
It will work ok.
Good luck~

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!