public final class R2SceneOpaques extends Object implements R2SceneOpaquesType
R2SceneOpaquesType
interface.Modifier and Type | Method and Description |
---|---|
static R2SceneOpaques |
create() |
<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, wait
opaquesAddBatchedInstance, opaquesAddBillboardedInstance, opaquesAddSingleInstance
public static R2SceneOpaques create()
public void opaquesReset()
R2SceneOpaquesType
opaquesReset
in interface R2SceneOpaquesType
public <M> void opaquesAddSingleInstanceInGroup(R2InstanceSingleType i, R2MaterialOpaqueSingleType<M> m, int group)
R2SceneOpaquesType
group
, which must be a value in the
range [1, {@link R2Stencils#MAXIMUM_GROUPS}]
.opaquesAddSingleInstanceInGroup
in interface R2SceneOpaquesType
M
- The type of shader parametersi
- The instancem
- The materialgroup
- The grouppublic <M> void opaquesAddBatchedInstanceInGroup(R2InstanceBatchedType i, R2MaterialOpaqueBatchedType<M> m, int group)
R2SceneOpaquesType
group
, which must be a value in the
range [1, 127]
.opaquesAddBatchedInstanceInGroup
in interface R2SceneOpaquesType
M
- The type of shader parametersi
- The instancem
- The materialgroup
- The grouppublic <M> void opaquesAddBillboardedInstanceInGroup(R2InstanceBillboardedType i, R2MaterialOpaqueBillboardedType<M> m, int group)
R2SceneOpaquesType
group
, which must be a value
in the range [1, 127]
.opaquesAddBillboardedInstanceInGroup
in interface R2SceneOpaquesType
M
- The type of shader parametersi
- The instancem
- The materialgroup
- The grouppublic void opaquesExecute(R2SceneOpaquesConsumerType c)
R2SceneOpaquesReadableType
opaquesExecute
in interface R2SceneOpaquesReadableType
c
- The consumerpublic long opaquesCount()
opaquesCount
in interface R2SceneOpaquesReadableType
Copyright © 2017 <code@io7m.com> http://io7m.com