public interface R2DepthInstancesConsumerType
The type of consumers of depth instances.
Instances are batched in a manner that is intended to require the minimum number of state changes for rendering, based upon the relative cost of state changes.
R2SceneOpaquesConsumerType
Modifier and Type | Method and Description |
---|---|
void |
onFinish()
Called when rendering of instances is finished.
|
<M> void |
onInstanceBatched(R2MaterialDepthBatchedType<M> material,
R2InstanceBatchedType i)
Called when a batched instance should be rendered.
|
<M> void |
onInstanceBatchedMaterialFinish(R2MaterialDepthBatchedType<M> material)
Called after the current set of batched instances have finished rendering
with the current material.
|
<M> void |
onInstanceBatchedMaterialStart(R2MaterialDepthBatchedType<M> material)
Called when new material settings should be assigned, for batched
instances.
|
<M> void |
onInstanceBatchedShaderFinish(R2ShaderDepthBatchedUsableType<M> s)
Called when the current shader should be deactivated.
|
<M> void |
onInstanceBatchedShaderStart(R2ShaderDepthBatchedUsableType<M> s)
Called when a new shader should be activated in order to start rendering
batched instances.
|
void |
onInstanceBatchedUpdate(R2InstanceBatchedType i)
Called when a batched instance should upload batch data to the GPU.
|
<M> void |
onInstanceSingle(R2MaterialDepthSingleType<M> material,
R2InstanceSingleType i)
Called when a single instance should be rendered.
|
void |
onInstanceSingleArrayStart(R2InstanceSingleType i)
Called when a new array object should be bound, for single instances.
|
<M> void |
onInstanceSingleMaterialFinish(R2MaterialDepthSingleType<M> material)
Called after the current set of single instances have finished rendering
with the current material.
|
<M> void |
onInstanceSingleMaterialStart(R2MaterialDepthSingleType<M> material)
Called when new material settings should be assigned, for single
instances.
|
<M> void |
onInstanceSingleShaderFinish(R2ShaderDepthSingleUsableType<M> s)
Called when the current shader should be deactivated.
|
<M> void |
onInstanceSingleShaderStart(R2ShaderDepthSingleUsableType<M> s)
Called when a new shader should be activated in order to start rendering
single instances.
|
void |
onStart()
Called when rendering of instances begins.
|
void onStart()
void onInstanceBatchedUpdate(R2InstanceBatchedType i)
i
- The batched instance<M> void onInstanceBatchedShaderStart(R2ShaderDepthBatchedUsableType<M> s)
M
- The type of shader parameterss
- The shader<M> void onInstanceBatchedMaterialStart(R2MaterialDepthBatchedType<M> material)
M
- The type of shader parametersmaterial
- The current material<M> void onInstanceBatched(R2MaterialDepthBatchedType<M> material, R2InstanceBatchedType i)
M
- The type of shader parametersmaterial
- The current materiali
- The current instance<M> void onInstanceBatchedMaterialFinish(R2MaterialDepthBatchedType<M> material)
M
- The type of shader parametersmaterial
- The current material<M> void onInstanceBatchedShaderFinish(R2ShaderDepthBatchedUsableType<M> s)
M
- The type of shader parameterss
- The shader<M> void onInstanceSingleShaderStart(R2ShaderDepthSingleUsableType<M> s)
M
- The type of shader parameterss
- The shader<M> void onInstanceSingleMaterialStart(R2MaterialDepthSingleType<M> material)
M
- The type of shader parametersmaterial
- The current materialvoid onInstanceSingleArrayStart(R2InstanceSingleType i)
i
- The current instance<M> void onInstanceSingle(R2MaterialDepthSingleType<M> material, R2InstanceSingleType i)
M
- The type of shader parametersmaterial
- The current materiali
- The current instance<M> void onInstanceSingleMaterialFinish(R2MaterialDepthSingleType<M> material)
M
- The type of shader parametersmaterial
- The current material<M> void onInstanceSingleShaderFinish(R2ShaderDepthSingleUsableType<M> s)
M
- The type of shader parameterss
- The shadervoid onFinish()
Copyright © 2017 <code@io7m.com> http://io7m.com