Class DynamicVertexBuffer
public class DynamicVertexBuffer : VertexBuffer, IDisposable
- Inheritance
-
DynamicVertexBuffer
- Implements
- Inherited Members
Constructors
DynamicVertexBuffer(GraphicsDevice, VertexDeclaration, int, BufferUsage)
public DynamicVertexBuffer(GraphicsDevice graphicsDevice, VertexDeclaration vertexDeclaration, int vertexCount, BufferUsage bufferUsage)
Parameters
graphicsDevice
GraphicsDevicevertexDeclaration
VertexDeclarationvertexCount
intbufferUsage
BufferUsage
DynamicVertexBuffer(GraphicsDevice, Type, int, BufferUsage)
public DynamicVertexBuffer(GraphicsDevice graphicsDevice, Type type, int vertexCount, BufferUsage bufferUsage)
Parameters
graphicsDevice
GraphicsDevicetype
TypevertexCount
intbufferUsage
BufferUsage
Properties
IsContentLost
public bool IsContentLost { get; }
Property Value
Methods
SetData<T>(int, T[], int, int, int, SetDataOptions)
public void SetData<T>(int offsetInBytes, T[] data, int startIndex, int elementCount, int vertexStride, SetDataOptions options) where T : struct
Parameters
offsetInBytes
intdata
T[]startIndex
intelementCount
intvertexStride
intoptions
SetDataOptions
Type Parameters
T
SetData<T>(T[], int, int, SetDataOptions)
public void SetData<T>(T[] data, int startIndex, int elementCount, SetDataOptions options) where T : struct
Parameters
data
T[]startIndex
intelementCount
intoptions
SetDataOptions
Type Parameters
T