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,
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 enabledCount()
Copyright © 2017 <code@io7m.com> http://io7m.com