Click to Rate and Give Feedback
MSDN
MSDN Library
XNA Game Studio
XNA Game Studio 3.1
VertexStream Class
 SetSource Method
Collapse All/Expand All Collapse All
XNA Game Studio 3.1
VertexStream.SetSource Method
Sets the source of the vertex stream.

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

C#
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.
Exception typeCondition
InvalidOperationExceptionThe requested vertex stream is invalid.
ObjectDisposedException SetSource was called after the GraphicsDevice was disposed.
Xbox 360, Windows XP SP2, Windows Vista
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker