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.

public Mesh()

Properties

Bounds

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

public Bounds Bounds { get; set; }

Property Value

Bounds

DrawMode

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

public PrimitiveType DrawMode { get; set; }

Property Value

PrimitiveType

ElementArray

Gets the handle to the element array object.

public int ElementArray { get; }

Property Value

int

ElementArrayType

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

public DrawElementsType ElementArrayType { get; set; }

Property Value

DrawElementsType

VertexArray

Gets the handle to the vertex array object.

public int VertexArray { get; }

Property Value

int

VertexBuffer

Gets the handle to the vertex buffer object.

public int VertexBuffer { get; }

Property Value

int

VertexCount

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

public int VertexCount { get; set; }

Property Value

int

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()