GraphicsDevice.SetVertexBuffer Method (VertexBuffer)
Sets or binds a vertex buffer to the device.
Syntax
'Declaration
Public Sub SetVertexBuffer ( _
vertexBuffer As VertexBuffer _
)
public void SetVertexBuffer (
VertexBuffer vertexBuffer
)
public:
void SetVertexBuffer(
VertexBuffer vertexBuffer
)
Parameters
- vertexBuffer
Type: VertexBuffer
A vertex buffer.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone