• Advertisement
Sign in to follow this  

Quick question about screen coordinates

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

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
Advertisement
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
Sign in to follow this  

  • Advertisement