D3DXMatrixOrthoLH width and height
Hi guys.
Whanted to know, when we use D3DXMatrixOrthoLH, what does the function mean by width and height.
For example, when it says height, does it mean my max y-axis value = height or does it mean the height from one end to the other?
Quote:Original post by FirecoreFrom the docs for D3DXMatrixOrthoOffCenterLH:
Hi guys.
Whanted to know, when we use D3DXMatrixOrthoLH, what does the function mean by width and height.
For example, when it says height, does it mean my max y-axis value = height or does it mean the height from one end to the other?
Quote:The D3DXMatrixOrthoLH function is a special case of the D3DXMatrixOrthoOffCenterLH function. To create the same projection using D3DXMatrixOrthoOffCenterLH, use the following values: l = -w/2, r = w/2, b = -h/2, and t = h/2.
So width and height are the length of the X and Y axes, and the coordinate range is from (-x/2, -y/2) to (x/2, y/2).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement