请教证明实现三维图形的缩放呀?

解决方案 »

  1.   

    D3DXMATRIXScaling
    Builds a matrix that scales along the x-axis, the y-axis, and the z-axis.D3DXMATRIX * D3DXMATRIXScaling(
      D3DXMATRIX * pOut,
      FLOAT sx,
      FLOAT sy,
      FLOAT sz
    );
    Parameters
    pOut
    [in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.
    sx
    [in] Scaling factor that is applied along the x-axis.
    sy
    [in] Scaling factor that is applied along the y-axis.
    sz
    [in] Scaling factor that is applied along the z-axis.
    Return Values
    Pointer to the scaling transformation D3DXMATRIX.

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

    Requirements
    Header: Declared in D3dx9math.h.