TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IBatchRenderer in Tinman.Terrain.Meshing

interface IBatchRenderer with <out TBatch>  
  <out TState>  
  extends IBatchContainer<TBatch>
  IBatchRendererBase
  base of Batching
  Chunking
  Decaling
  Regions
  Texturing

Attributes

BatchCount

Returns the current number of rendering batches that are buffered by this object.

property BatchCount { get }
type int32
value [>=0] The number of rendering batch elements.
inherited IBatchContainerBase.BatchCount

See also:

IBatchContainer.GetBatch

Methods

ClearBatches

Clears all batches.

method ClearBatches ()
inherited IBatchRendererBase.ClearBatches

ComputeBatches

Computes the render batches.

method ComputeBatches ()
inherited IBatchRendererBase.ComputeBatches

GetBatch

Returns the index-th rendering batch.

method GetBatch (int32 index)
type TBatch
params index [0..BatchCount-1] Index of rendering batch to return.
returns The rendering batch.
inherited IBatchContainer.GetBatch

Remarks:

Usually, the sort order of batches is well-defined, in order to minimize state changes when processing batches first to last. Please refer to the documentation of the respective batch type for details.

RenderBatches

Renders all batches using the given renderer.

method RenderBatches (Triangulation triangulation, IPrimitiveRenderer renderer, BatchDelegate<TState> callback = null, int32 tag = 0)
params triangulation [not-null] The mesh triangulation object.
  renderer [not-null] The primitive renderer to use.
  callback Optional render state callback to use. Defaults to null.
  tag A user-defined value that will be passed to the callback. Defaults to 0.