Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
Direct3D Reference
Interfaces
IDirect3DDevice9
 IDirect3DDevice9::SetMaterial

  Switch on low bandwidth view
IDirect3DDevice9::SetMaterial
Bb174437.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb174437.XDK_CHM_BANNER_right(en-us,VS.85).jpg

IDirect3DDevice9::SetMaterial

Sets the material properties for the device.

HRESULT SetMaterial(
  CONST D3DMATERIAL9 * pMaterial
);

Parameters

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

Return Values

If the method succeeds, the return value is D3D_OK. D3DERR_INVALIDCALL if the pMaterial parameter is invalid.

Requirements

Header: Declared in D3D9.h.

Library: Use D3D9.lib.

See Also

IDirect3DDevice9::GetMaterial

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker