public interface R2InstanceBillboardedType extends R2InstanceType
The type of billboarded instances.
A billboarded instance consists of a set of one or more vertex buffers containing a list of world-space positions. At render-time, the positions are transformed into quadrilaterals (pairs of triangles) that are oriented to face the viewer at all times.
The primary use case for billboarded instances is rendering particle systems.
Modifier and Type | Method and Description |
---|---|
com.io7m.jcanephora.core.JCGLArrayObjectType |
arrayObject() |
int |
enabledCount() |
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 enabledCount()
Copyright © 2017 <code@io7m.com> http://io7m.com