Sign in to follow this  
shavais

How can I castrate window-resize?

Recommended Posts

shavais    122
I have a very simple scene (which has a triangle and a sprite) being rendered in an XNA app, and another similar one being rendered in a C#/MDX app. In both cases, the scene resizes if the user resizes the window. Is there a way to allow the user to resize the window to their heart's content without effecting the size of the rendering? Maybe changing the viewport size in OnSizeChanged().. am I on the right track? Thanks for any help

Share this post


Link to post
Share on other sites
Sneftel    1788
Erm. Castrate?

Anyways, it depends on what exactly you're trying to have happen. When the user makes the window bigger, should the rendered area have a black border around it? When the user makes the window smaller, should the effective field of view be very small?

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