Sign in to follow this  
RayTracer

D3D Window Resize

Recommended Posts

RayTracer    138
I'm working on a windowed application and i am having some issues with window resize.I dont want the output to be stretched when i resize the window.Is there anyway of doing this without reseting the device? Thanks

Share this post


Link to post
Share on other sites
Evil Steve    2017
Quote:
Original post by RayTracer
I'm working on a windowed application and i am having some issues with window resize.I dont want the output to be stretched when i resize the window.Is there anyway of doing this without reseting the device? Thanks
I believe there's a way to create and manage your own swap chain, which means you don't need to reset the device, but is it really such a big deal? Why not just update your projection matrix when a resize happens, which would at least preserve the aspect ratio.

Share this post


Link to post
Share on other sites
RayTracer    138
I'm making an UI in windowed mode and using Sprites for rendering,i don't want the display output to scale when i resize the window.Could i use a swap chain to counter this? If yes , how? I'm really clueless on how to approach this problem. Thanks :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this