VertexBuffer Class (Microsoft.Xna.Framework.Graphics)


Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1018)
  • C#
  • VB
  • F#
public class VertexBuffer : GraphicsResource

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The VertexBuffer type exposes the following members.

  Platforms Name Description
BufferUsage  
GraphicsDevice  (Inherited from GraphicsResource.)
IsDisposed  (Inherited from GraphicsResource.)
Name  (Inherited from GraphicsResource.)
Tag  (Inherited from GraphicsResource.)
VertexCount  
VertexDeclaration  
Top
  Platforms Name Description
Dispose(bool) The method that derived classes should override to implement disposing of managed and native resources. (Overrides GraphicsResource.Dispose().)
Dispose()  (Inherited from GraphicsResource.)
Finalize  (Inherited from GraphicsResource.)
GetData<T>(int, T[], int, int, int) Get the vertex data froom this VertexBuffer. 
GetData<T>(T[], int, int)  
GetData<T>(T[])  
GraphicsDeviceResetting The GraphicsDevice is resetting, so GPU resources must be recreated. (Overrides GraphicsResource.GraphicsDeviceResetting().)
SetData<T>(int, T[], int, int, int) Sets the vertex buffer data, specifying the index at which to start copying from the source data array, the number of elements to copy from the source data array, and how far apart elements from the source data array should be when they are copied into the vertex buffer. 
SetData<T>(T[]) Sets the vertex buffer data. This is the same as calling SetData<T>(int, T[], int, int, int) with offsetInBytes and startIndex equal to 0, elementCount equal to data.Length, and vertexStride equal to sizeof(T)
SetData<T>(T[], int, int) Sets the vertex buffer data, specifying the index at which to start copying from the source data array, and the number of elements to copy from the source data array. This is the same as calling SetData<T>(int, T[], int, int, int) with offsetInBytes equal to 0, and vertexStride equal to sizeof(T)
SetDataInternal<T>  
ToString  (Inherited from GraphicsResource.)
Top
  Platforms Name Description
Disposing  (Inherited from GraphicsResource.)
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web