D3DXCreateMatrixStack function (D3dx9math.h)

Note

The D3DX utility library is deprecated. We recommend that you use DirectXMath instead along with this header from GitHub.

Creates an instance of the ID3DXMATRIXStack interface.

Syntax

HRESULT D3DXCreateMatrixStack(
  _In_  DWORD             Flags,
  _Out_ LPD3DXMATRIXSTACK *ppStack
);

Parameters

Flags [in]

Type: DWORD

Not implemented. Specify zero.

ppStack [out]

Type: LPD3DXMATRIXSTACK*

Address of a pointer filled with an ID3DXMATRIXStack interface pointer if the function succeeds.

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

Requirements

Requirement Value
Header
D3dx9math.h
Library
D3dx9.lib

See also

Math Functions