UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:directxmath.XMMatrixOrthographicLH |
XMMatrixOrthographicLH function (directxmath.h) |
Builds an orthogonal projection matrix for a left-handed coordinate system. |
|
dxmath\xmmatrixorthographiclh.htm |
dxmath |
M:Microsoft.directx_sdk.matrix.XMMatrixOrthographicLH(float,float,float,float) |
12/05/2018 |
Use DirectX..XMMatrixOrthographicLH, XMMatrixOrthographicLH, XMMatrixOrthographicLH method [DirectX Math Support APIs], dxmath.xmmatrixorthographiclh |
directxmath.h |
Windows |
Use DirectX. |
Windows |
19H1 |
|
|
|
|
|
|
Builds an orthogonal projection matrix for a left-handed coordinate system.
Width of the frustum at the near clipping plane.
Height of the frustum at the near clipping plane.
Distance to the near clipping plane.
Distance to the far clipping plane.
Returns the orthogonal projection matrix.
For typical usage, NearZ is less than FarZ. However, if you flip these values so FarZ is less than NearZ, the result is an inverted z buffer (also known as a "reverse z buffer") which can provide increased floating-point precision.
NearZ and FarZ cannot be the same value and must be greater than 0.
All the parameters of XMMatrixOrthographicLH are distances in camera space.
Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.