DirectX 11 coordinate system question
How do I make the coordinate system in DirectX 11 relative to the top left of the screen? I've setup an orthographic projection matrix, so that I can use screen coordinates but it makes more sense to me to have a top left origin, since I come from working with OpenGl.
I setup my projection matrix like this:
ww = the width of the window
and wh = the height of the window
projection = XMMatrixIdentity ();
projection = XMMatrixOrthographicLH (ww, wh, -1, 1);
Related Article: Scope-guarded lockable objects in C++11
is a C++ code snippet by mike_2000_17 that has 14 replies, was last updated 10 months ago and has been tagged with the keywords: scope-guard, mutex, lock, c++, c++11, smart-pointer.
tomtetlaw
Practically a Master Poster
615 posts since Sep 2008
Reputation Points: 9
Solved Threads: 5
Skill Endorsements: 0