public final class R2DepthInstances extends Object implements R2DepthInstancesType
R2DepthInstancesType
interface.Modifier and Type | Method and Description |
---|---|
static R2DepthInstances |
create() |
<M> void |
depthsAddBatchedInstance(R2InstanceBatchedType i,
R2MaterialDepthBatchedType<M> m)
Add a batched instance to the scene using the given material, in group
1 . |
<M> void |
depthsAddSingleInstance(R2InstanceSingleType i,
R2MaterialDepthSingleType<M> m)
Add a single instance to the scene using the given material, in group
1 . |
long |
depthsCount() |
void |
depthsExecute(R2DepthInstancesConsumerType c)
Batch the instances and pass them to the given consumer for rendering.
|
com.io7m.jcanephora.core.JCGLFaceSelection |
depthsGetFaceCulling() |
void |
depthsReset()
Remove all instances from the scene.
|
void |
depthsSetFaceCulling(com.io7m.jcanephora.core.JCGLFaceSelection f)
Set which faces will be culled for the rendered instances.
|
public static R2DepthInstances create()
public void depthsSetFaceCulling(com.io7m.jcanephora.core.JCGLFaceSelection f)
R2DepthInstancesType
JCGLFaceSelection.FACE_BACK
.depthsSetFaceCulling
in interface R2DepthInstancesType
f
- The faces to be culledpublic com.io7m.jcanephora.core.JCGLFaceSelection depthsGetFaceCulling()
depthsGetFaceCulling
in interface R2DepthInstancesType
R2DepthInstancesType.depthsSetFaceCulling(JCGLFaceSelection)
public void depthsReset()
R2DepthInstancesType
depthsReset
in interface R2DepthInstancesType
public <M> void depthsAddSingleInstance(R2InstanceSingleType i, R2MaterialDepthSingleType<M> m)
R2DepthInstancesType
1
.depthsAddSingleInstance
in interface R2DepthInstancesType
M
- The type of shader parametersi
- The instancem
- The materialpublic <M> void depthsAddBatchedInstance(R2InstanceBatchedType i, R2MaterialDepthBatchedType<M> m)
R2DepthInstancesType
1
.depthsAddBatchedInstance
in interface R2DepthInstancesType
M
- The type of shader parametersi
- The instancem
- The materialpublic void depthsExecute(R2DepthInstancesConsumerType c)
R2DepthInstancesType
depthsExecute
in interface R2DepthInstancesType
c
- The consumerpublic long depthsCount()
depthsCount
in interface R2DepthInstancesType
Copyright © 2017 <code@io7m.com> http://io7m.com