Builds an orthogonal projection matrix for a right-handed coordinate system.
XMMATRIX XMMatrixOrthographicRH(
float ViewWidth,
float ViewHeight,
float NearZ,
float FarZ
)
ViewWidth
Type: float
Width of the frustum at the near clipping plane.
ViewHeight
Type: float
Height of the frustum at the near clipping plane.
NearZ
Type: float
Distance to the near clipping plane.
FarZ
Type: float
Distance to the far clipping plane.
Type: XMMATRIX
Returns the orthogonal projection matrix.
All the parameters of XMMatrixOrthographicRH are distances in camera space.
Header: Declared in directxmath.h.