Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the source of the vertex stream.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void SetSource (
VertexBuffer vb,
int offsetInBytes,
int vertexStride
)
Parameters
- vb
The vertex buffer source. - offsetInBytes
The starting offset. - vertexStride
The size, in bytes, of the elements in the vertex buffer.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The requested vertex stream is invalid. |
ObjectDisposedException | SetSource was called after the GraphicsDevice was disposed. |
See Also
Reference
VertexStream Class
VertexStream Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista