Sign in to follow this  
Opwiz

Quick question about screen coordinates

Recommended Posts

If I want to normalize my screen coordinates in directx should I use the device back-buffer width/height or the device window client rectangle width/height?

Share this post


Link to post
Share on other sites
The backbuffer is the "screen" that you render to so you should use its size. The exception to that is if you've allocated a larger backbuffer than needed and use a subrect that matches the window, in which case use the subrect size.

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