Click to Rate and Give Feedback
MSDN
MSDN Library
Collapse All/Expand All Collapse All
XNA Game Studio Express 1.0 Refresh
VertexContent.CreateVertexBuffer Method
Converts design-time vertex position and channel data into a vertex buffer format that a graphics device can recognize.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

C#
public void CreateVertexBuffer (
         out VertexBufferContent vertexBuffer,
         out VertexElement[] vertexElements
)

Parameters

vertexBuffer
[OutAttribute] A packed vertex buffer.
vertexElements
[OutAttribute] Description of the vertex format.

CreateVertexBuffer throws InvalidContentException if any vertex channels have invalid element types or names that do not correspond to the graphics VertexElementUsage enumeration.

Windows XP SP2, Windows Vista

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