public class GL3SharedRenderInstances extends GL3ResourceBase
| Modifier and Type | Method and Description |
|---|---|
GL3SharedRenderInstances |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bindInstanceAttributes(com.jogamp.opengl.GL3 gl,
RenderInstances.InstanceTransformType type) |
void |
dispose(com.jogamp.opengl.GL3 gl)
Discard data, regardless of references
|
void |
drawInstanced(com.jogamp.opengl.GL3 gl,
GL3SharedObject glo,
RenderInstances.InstanceTransformType type) |
void |
drawInstancedPoints(com.jogamp.opengl.GL3 gl,
GL3SharedObject glo,
int count) |
static GL3SharedRenderInstances |
generate(com.jogamp.opengl.GL3 gl,
RenderInstances rinst,
GL3VertexAttributeInfo posAttribute,
GL3VertexAttributeInfo rotAttribute,
GL3VertexAttributeInfo affAttribute,
GL3VertexAttributeInfo nrmAttribute,
GL3VertexAttributeInfo scaAttribute,
GL3VertexAttributeInfo clrAttribute) |
int |
getBindVersion() |
boolean |
isDisposed()
Returns true if resource has been disposed
|
boolean |
isValid()
Returns true if resource can be used (i.e.
|
boolean |
maybeUpdate(com.jogamp.opengl.GL3 gl,
RenderInstances rinst)
Potentially update the internal VBOs
|
int |
numAffines() |
int |
numFrames() |
int |
numPoints() |
dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDisposeacquireAndCount, getReferenceCount, release, releaseAndCountequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireAndCount, getReferenceCount, release, releaseAndCountpublic boolean maybeUpdate(com.jogamp.opengl.GL3 gl,
RenderInstances rinst)
gl - context handlerinst - instance storagepublic int getBindVersion()
public boolean isValid()
GLResourceisValid in interface GLResourceisValid in class GLResourceBasetrue if the resource can be usedpublic int numPoints()
public int numFrames()
public int numAffines()
public void bindInstanceAttributes(com.jogamp.opengl.GL3 gl,
RenderInstances.InstanceTransformType type)
public GL3SharedRenderInstances acquire()
ReferenceCountedacquire in interface GL3Resourceacquire in interface GLResourceacquire in interface ReferenceCountedacquire in class GL3ResourceBasepublic void dispose(com.jogamp.opengl.GL3 gl)
GL3Resourcedispose in interface GL3Resourcedispose in class GL3ResourceBasegl - active contextpublic boolean isDisposed()
GLResourceisDisposed in interface GLResourceisDisposed in class GLResourceBasepublic void drawInstanced(com.jogamp.opengl.GL3 gl,
GL3SharedObject glo,
RenderInstances.InstanceTransformType type)
public void drawInstancedPoints(com.jogamp.opengl.GL3 gl,
GL3SharedObject glo,
int count)
public static GL3SharedRenderInstances generate(com.jogamp.opengl.GL3 gl, RenderInstances rinst, GL3VertexAttributeInfo posAttribute, GL3VertexAttributeInfo rotAttribute, GL3VertexAttributeInfo affAttribute, GL3VertexAttributeInfo nrmAttribute, GL3VertexAttributeInfo scaAttribute, GL3VertexAttributeInfo clrAttribute)