interface
|
IBatchRenderer
|
with
|
<out
TBatch>
|
||
<out
TState>
|
|||||
extends
|
IBatchContainer<TBatch>
|
||||
IBatchRendererBase
|
|||||
base of
|
Batching
|
||||
Chunking
|
|||||
Decaling
|
|||||
Regions
|
|||||
Texturing
|
Returns the current number of rendering batches that are buffered by this object.
property
|
BatchCount
{
get
}
|
||
type
|
int32
|
||
value
|
|
The number of rendering batch elements. | |
inherited
|
IBatchContainerBase.BatchCount
|
See also:
IBatchContainer.GetBatchClears all batches.
method
|
ClearBatches
()
|
||
inherited
|
IBatchRendererBase.ClearBatches
|
Computes the render batches.
method
|
ComputeBatches
()
|
||
inherited
|
IBatchRendererBase.ComputeBatches
|
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.
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 .
|