public interface R2InstanceBatchedType extends R2InstanceType
The type of batched instances.
A batch consists of a set of one or more vertex buffers containing mesh data, and a vertex buffer containing a set of transforms - one per rendered object.
The primary use case for batched instances is rendering a lot of copies of the same mesh in a single draw call.
| Modifier and Type | Method and Description |
|---|---|
com.io7m.jcanephora.core.JCGLArrayObjectType |
arrayObject() |
int |
renderCount() |
void |
update(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2TransformContextType context)
Update any data required for rendering on the GPU.
|
instanceIDcom.io7m.jcanephora.core.JCGLArrayObjectType arrayObject()
void update(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2TransformContextType context)
context - The transform contextg - An OpenGL interfaceint renderCount()
Copyright © 2016 <code@io7m.com> http://io7m.com