Platform SDK: DirectX

D3DXCreateMatrixStack

The D3DXCreateMatrixStack function creates an instance of the ID3DXMatrixStack interface.

HRESULT D3DXCreateMatrixStack(
  DWORD flags,
  ID3DXMatrixStack** ppStack
); 

Parameters

flags
Not implemented. Specify zero.
ppStack
The address of a pointer filled with an ID3DXMatrixStack interface pointer if the function succeeds.

Return Values

If the function succeeds, the return value is S_OK.

If the function fails, the return value may be one of the following values:

D3DXERR_NOMEMORY
D3DXERR_NULLPOINTER

Requirements

  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.