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

  Switch on low bandwidth view
IDirect3DDevice9::SetVertexDeclaration
Bb174464.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb174464.XDK_CHM_BANNER_right(en-us,VS.85).jpg

IDirect3DDevice9::SetVertexDeclaration

Sets a Vertex Declaration (Direct3D 9).

HRESULT SetVertexDeclaration(
  IDirect3DVertexDeclaration9 * pDecl
);

Parameters

pDecl
[in] Pointer to an IDirect3DVertexDeclaration9 object, which contains the vertex declaration.

Return Values

If the method succeeds, the return value is D3D_OK. The return value can be D3DERR_INVALIDCALL.

Remarks

A vertex declaration is an IDirect3DVertexDeclaration9 object that defines the data members of a vertex (i.e. texture coordinates, colors, normals, etc.). This data can be useful for implementing vertex shaders and pixel shaders.

Requirements

Header: Declared in D3D9.h.

Library: Use D3D9.lib.

See Also

IDirect3DDevice9::GetVertexDeclaration

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