Table of Contents

Class Mesh

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

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.

Properties

Bounds

Gets or sets the axis-aligned bounding box of the mesh vertices.

DrawMode

Gets or sets a value specifying the draw mode to use for rendering the mesh.

ElementArray

Gets the handle to the element array object.

ElementArrayType

Gets or sets a value specifying the type of the elements in the element array object.

VertexArray

Gets the handle to the vertex array object.

VertexBuffer

Gets the handle to the vertex buffer object.

VertexCount

Gets or sets the number of vertices in the mesh vertex buffer.

Methods

Dispose()

Releases all resources used by the Mesh class.

Draw()

Renders primitives from mesh vertex array data.

EnsureElementArray()

Ensures the element array object is initialized.