TriangulationBatch

Description

struct Tinman.Terrain.Meshing.TriangulationBatch

A batch that represents a sequence of triangulation slices for rendering a part of the terrain mesh.

Public / Constants

Empty


public static readonly attribute Empty → (TriangulationBatch)

An empty triangulation batch.

Public / Constructors

Triangulation​Batch


public constructor TriangulationBatch → (4)

first in : int32

See First.

last in : int32

See Last.

mode in : Primitive

See Mode.

indirect in : bool

See Indirect.

Creates a new instance of TriangulationBatch.

Public / Methods

Render


public method Render → (1)

renderer in : IPrimitiveRenderer

[not-null]
The renderer to use.

Issues a draw call for this batch.

Public / Attributes

First


public readonly attribute First → (int32)

First index in range (inclusive).

Indirect


public readonly attribute Indirect → (bool)

Is this an indirect (true) draw command or a direct (false) draw command?

Is​Empty


public attribute IsEmpty → (get)

value : bool

true if this batch is empty, false if not.

Is this triangulation batch empty?

Last


public readonly attribute Last → (int32)

Last index in range (exclusive).

Mode


public readonly attribute Mode → (Primitive)

The primitive to use for rendering.