Partager via


D3DXMatrixPerspectiveOffCenterLH

This function builds a customized, left-handed perspective projection matrix given the coordinates of the near clipping plane.

D3DXMATRIX* D3DXMatrixPerspectiveOffCenterLH(
  D3DXMATRIX* pOut,
  FLOAT l,
  FLOAT r,
  FLOAT b,
  FLOAT t,
  FLOAT zn,
  FLOAT zf
); 

Parameters

  • pOut
    [in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.
  • l
    [in] Left coordinate for the rectangle describing the near clipping plane.
  • r
    [in] Right coordinate for the rectangle describing the near clipping plane.
  • t
    [in] Top coordinate for the rectangle describing the near clipping plane.
  • b
    [in] Bottom coordinate for the rectangle describing the near clipping plane.
  • zn
    [in] Distance from the camera to the near clipping plane.
  • zf
    [in] Distance from the camera to the far clipping plane.

Return Values

Pointer to a D3DXMATRIX structure that is a customized, left-handed perspective projection matrix.

Remarks

All the parameters of the D3DXMatrixPerspectiveOffCenterLH function are distances in camera-space. The parameters describe the dimensions of the frustum that defines the view-volume.

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixPerspectiveOffCenterLH function can be used as a parameter for another function.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3dx8math.h.
Link Library: D3dx8.lib.

See Also

D3DXMatrixPerspectiveFovLH | D3DXMATRIX

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.