GraphicsDevice.SetVertexBuffer Method (VertexBuffer, Int32)

Sets or binds a vertex buffer to the device.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

public void SetVertexBuffer (
         VertexBuffer vertexBuffer,
         int vertexOffset
)

Parameters

vertexBuffer
Type: VertexBuffer
A vertex buffer.
vertexOffset
Type: Int32
The offset (in vertices) from the beginning of the buffer.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: