d3d9.dllSetMaterial
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3DDevice9::SetMaterial Method


Sets the material properties for the device.

Syntax

HRESULT SetMaterial(      

    CONST D3DMATERIAL9 *pMaterial );

Parameters

pMaterial
[in] Pointer to a D3DMATERIAL9 structure, describing the material properties to set.

Return Value

If the method succeeds, the return value is D3D_OK.

D3DERR_INVALIDCALL if the pMaterial parameter is invalid.

See Also

IDirect3DDevice9::GetMaterial


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.