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)
Update any data required for rendering on the GPU.
|
boolean |
updateRequired() |
instanceID
com.io7m.jcanephora.core.JCGLArrayObjectType arrayObject()
void update(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
g
- An OpenGL interfaceboolean updateRequired()
true
if the instance data has changed since the last call
to {update(JCGLInterfaceGL33Type)
}int renderCount()
Copyright © 2017 <code@io7m.com> http://io7m.com