Table of Contents

Class DynamicVertexBuffer

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
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 GraphicsDevice
vertexDeclaration VertexDeclaration
vertexCount int
bufferUsage BufferUsage

DynamicVertexBuffer(GraphicsDevice, Type, int, BufferUsage)

public DynamicVertexBuffer(GraphicsDevice graphicsDevice, Type type, int vertexCount, BufferUsage bufferUsage)

Parameters

graphicsDevice GraphicsDevice
type Type
vertexCount int
bufferUsage BufferUsage

Properties

IsContentLost

public bool IsContentLost { get; }

Property Value

bool

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 int
data T[]
startIndex int
elementCount int
vertexStride int
options 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 int
elementCount int
options SetDataOptions

Type Parameters

T