public final class R2DepthInstances extends Object implements R2DepthInstancesType
R2DepthInstancesType interface.| Modifier and Type | Method and Description |
|---|---|
<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.
|
static R2DepthInstancesType |
newDepthInstances() |
public static R2DepthInstancesType newDepthInstances()
public void depthsSetFaceCulling(com.io7m.jcanephora.core.JCGLFaceSelection f)
R2DepthInstancesTypeJCGLFaceSelection.FACE_BACK.depthsSetFaceCulling in interface R2DepthInstancesTypef - The faces to be culledpublic com.io7m.jcanephora.core.JCGLFaceSelection depthsGetFaceCulling()
depthsGetFaceCulling in interface R2DepthInstancesTypeR2DepthInstancesType.depthsSetFaceCulling(JCGLFaceSelection)public void depthsReset()
R2DepthInstancesTypedepthsReset in interface R2DepthInstancesTypepublic <M> void depthsAddSingleInstance(R2InstanceSingleType i, R2MaterialDepthSingleType<M> m)
R2DepthInstancesType1.depthsAddSingleInstance in interface R2DepthInstancesTypeM - The type of shader parametersi - The instancem - The materialpublic <M> void depthsAddBatchedInstance(R2InstanceBatchedType i, R2MaterialDepthBatchedType<M> m)
R2DepthInstancesType1.depthsAddBatchedInstance in interface R2DepthInstancesTypeM - The type of shader parametersi - The instancem - The materialpublic void depthsExecute(R2DepthInstancesConsumerType c)
R2DepthInstancesTypedepthsExecute in interface R2DepthInstancesTypec - The consumerpublic long depthsCount()
depthsCount in interface R2DepthInstancesTypeCopyright © 2017 <code@io7m.com> http://io7m.com