public class GL3SharedRenderObjectPrimitivesDrawable extends GL3ResourceBase implements GL3SharedDrawable
GL3SharedRenderObjectPrimitives into a drawable form| Constructor and Description |
|---|
GL3SharedRenderObjectPrimitivesDrawable(GL3SharedRenderObjectPrimitives glo) |
| Modifier and Type | Method and Description |
|---|---|
GL3SharedRenderObjectPrimitivesDrawable |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bind(com.jogamp.opengl.GL3 gl)
Binds attributes to the currently active GL object
|
void |
dispose(com.jogamp.opengl.GL3 gl)
Discard data, regardless of references
|
void |
draw(com.jogamp.opengl.GL3 gl)
Draw to the provided active context
|
void |
drawInstanced(com.jogamp.opengl.GL3 gl,
int instanceCount)
Draw using instanced rendering to the active context
|
boolean |
equals(GL3SharedDrawable other)
Compares to another drawable to see if same
|
int |
getBindVersion()
A version number corresponding to the necessary bound state
of the drawable's attributes.
|
int |
hashCode()
Unique hashcode for identifying object
|
boolean |
isDisposed()
Returns true if resource has been disposed
|
void |
setDrawGroups(int pidx,
int lidx,
int tidx)
Sets draw groups, -1 to deactivate
|
dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDisposeisValidacquireAndCount, getReferenceCount, release, releaseAndCountequals, getClass, notify, notifyAll, toString, wait, wait, waitdisposeInvalid, disposeUnreferenced, releaseDisposedispose, disposeInvalid, disposeUnreferenced, isValid, releaseDisposeacquireAndCount, getReferenceCount, release, releaseAndCountpublic GL3SharedRenderObjectPrimitivesDrawable(GL3SharedRenderObjectPrimitives glo)
public int getBindVersion()
GL3SharedDrawablegetBindVersion in interface GL3SharedDrawablepublic void bind(com.jogamp.opengl.GL3 gl)
GL3SharedDrawablebind in interface GL3SharedDrawablegl - active contextpublic GL3SharedRenderObjectPrimitivesDrawable acquire()
ReferenceCountedacquire in interface GL3Resourceacquire in interface GL3SharedDrawableacquire 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 boolean equals(GL3SharedDrawable other)
GL3SharedDrawableequals in interface GL3SharedDrawableother - drawable to compare topublic int hashCode()
GL3SharedDrawablehashCode in interface GL3SharedDrawablehashCode in class java.lang.Objectpublic void setDrawGroups(int pidx,
int lidx,
int tidx)
pidx - point group indexlidx - line group indextidx - triangle group indexpublic void draw(com.jogamp.opengl.GL3 gl)
GL3SharedDrawabledraw in interface GL3SharedDrawablegl - active contextpublic void drawInstanced(com.jogamp.opengl.GL3 gl,
int instanceCount)
GL3SharedDrawabledrawInstanced in interface GL3SharedDrawablegl - context handleinstanceCount - number of instances