public final class R2SceneOpaques extends Object implements R2SceneOpaquesType
R2SceneOpaquesType interface.| Modifier and Type | Method and Description |
|---|---|
static R2SceneOpaquesType |
newOpaques() |
<M> void |
opaquesAddBatchedInstanceInGroup(R2InstanceBatchedType i,
R2MaterialOpaqueBatchedType<M> m,
int group)
Add a batched instance to the scene using the given material.
|
<M> void |
opaquesAddBillboardedInstanceInGroup(R2InstanceBillboardedType i,
R2MaterialOpaqueBillboardedType<M> m,
int group)
Add a billboarded instance to the scene using the given material.
|
<M> void |
opaquesAddSingleInstanceInGroup(R2InstanceSingleType i,
R2MaterialOpaqueSingleType<M> m,
int group)
Add a single instance to the scene using the given material.
|
long |
opaquesCount() |
void |
opaquesExecute(R2SceneOpaquesConsumerType c)
Batch the instances and pass them to the given consumer for rendering.
|
void |
opaquesReset()
Remove all instances from the scene.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopaquesAddBatchedInstance, opaquesAddBillboardedInstance, opaquesAddSingleInstancepublic static R2SceneOpaquesType newOpaques()
public void opaquesReset()
R2SceneOpaquesTypeopaquesReset in interface R2SceneOpaquesTypepublic <M> void opaquesAddSingleInstanceInGroup(R2InstanceSingleType i, R2MaterialOpaqueSingleType<M> m, int group)
R2SceneOpaquesTypegroup, which must be a value in the
range [1, {@link R2Stencils#MAXIMUM_GROUPS}].opaquesAddSingleInstanceInGroup in interface R2SceneOpaquesTypeM - The type of shader parametersi - The instancem - The materialgroup - The grouppublic <M> void opaquesAddBatchedInstanceInGroup(R2InstanceBatchedType i, R2MaterialOpaqueBatchedType<M> m, int group)
R2SceneOpaquesTypegroup, which must be a value in the
range [1, 127].opaquesAddBatchedInstanceInGroup in interface R2SceneOpaquesTypeM - The type of shader parametersi - The instancem - The materialgroup - The grouppublic <M> void opaquesAddBillboardedInstanceInGroup(R2InstanceBillboardedType i, R2MaterialOpaqueBillboardedType<M> m, int group)
R2SceneOpaquesTypegroup, which must be a value
in the range [1, 127].opaquesAddBillboardedInstanceInGroup in interface R2SceneOpaquesTypeM - The type of shader parametersi - The instancem - The materialgroup - The grouppublic void opaquesExecute(R2SceneOpaquesConsumerType c)
R2SceneOpaquesReadableTypeopaquesExecute in interface R2SceneOpaquesReadableTypec - The consumerpublic long opaquesCount()
opaquesCount in interface R2SceneOpaquesReadableTypeCopyright © 2017 <code@io7m.com> http://io7m.com