Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDirect3DDevice9::SetTransform method

Sets a single device transformation-related state.

Syntax


HRESULT SetTransform(
  [in]       D3DTRANSFORMSTATETYPE State,
  [inconst D3DMATRIX             *pMatrix
);

Parameters

State [in]

Type: D3DTRANSFORMSTATETYPE

Device-state variable that is being modified. This parameter can be any member of the D3DTRANSFORMSTATETYPE enumerated type, or the D3DTS_WORLDMATRIX macro.

pMatrix [in]

Type: const D3DMATRIX*

Pointer to a D3DMATRIX structure that modifies the current transformation.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. D3DERR_INVALIDCALL is returned if one of the arguments is invalid.

Requirements

Header

D3D9.h

Library

D3D9.lib

See also

IDirect3DDevice9
IDirect3DDevice9::GetTransform
IDirect3DDevice9::SetRenderState
D3DTS_WORLD
D3DTS_WORLDn
D3DTS_WORLDMATRIX

 

 

Show:
© 2017 Microsoft