Platform SDK: DirectX |
The D3DXMatrixPerspectiveFovLH function builds a left-handed perspective projection matrix based on a given field of view.
D3DXMATRIX* D3DXMatrixPerspectiveFovLH( D3DXMATRIX* pOut, float fovy, float aspect, float zn, float zf );
A pointer to a D3DXMATRIX structure that is a left-handed perspective projection matrix.
The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixPerspectiveFovLH function can be used as a parameter for another function.
The default projection matrix setup by the D3DXCreateContext and D3DXCreateContextEx functions is a left-handed perspective projection with a field-of-view (fov) of pi/2 radians.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 7.0.
Header: Declared in d3dxmath.h.
Library: Use d3dx.lib.
D3DXMatrixPerspective, D3DXMatrixPerspectiveLH, D3DXMatrixPerspectiveFov, D3DXMatrixPerspectiveOffCenter, D3DXMatrixPerspectiveOffCenterLH