Class Mesh
Represents a collection of vertices and indices used to describe arbitrary geometry.
public class Mesh : IDisposable
- Inheritance
-
Mesh
- Implements
- Inherited Members
Constructors
Mesh()
Initializes a new instance of the Mesh class.
public Mesh()
Properties
Bounds
Gets or sets the axis-aligned bounding box of the mesh vertices.
public Bounds Bounds { get; set; }
Property Value
DrawMode
Gets or sets a value specifying the draw mode to use for rendering the mesh.
public PrimitiveType DrawMode { get; set; }
Property Value
ElementArray
Gets the handle to the element array object.
public int ElementArray { get; }
Property Value
ElementArrayType
Gets or sets a value specifying the type of the elements in the element array object.
public DrawElementsType ElementArrayType { get; set; }
Property Value
VertexArray
Gets the handle to the vertex array object.
public int VertexArray { get; }
Property Value
VertexBuffer
Gets the handle to the vertex buffer object.
public int VertexBuffer { get; }
Property Value
VertexCount
Gets or sets the number of vertices in the mesh vertex buffer.
public int VertexCount { get; set; }
Property Value
Methods
Dispose()
Releases all resources used by the Mesh class.
public void Dispose()
Draw()
Renders primitives from mesh vertex array data.
public void Draw()
EnsureElementArray()
Ensures the element array object is initialized.
public void EnsureElementArray()