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
graphicsDeviceGraphicsDevicevertexDeclarationVertexDeclarationvertexCountintbufferUsageBufferUsage
DynamicVertexBuffer(GraphicsDevice, Type, int, BufferUsage)
public DynamicVertexBuffer(GraphicsDevice graphicsDevice, Type type, int vertexCount, BufferUsage bufferUsage)
Parameters
graphicsDeviceGraphicsDevicetypeTypevertexCountintbufferUsageBufferUsage
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
offsetInBytesintdataT[]startIndexintelementCountintvertexStrideintoptionsSetDataOptions
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
dataT[]startIndexintelementCountintoptionsSetDataOptions
Type Parameters
T