public class GL3SharedRenderObjectPrimitivesDrawable extends GL3ResourceBase implements GL3SharedDrawable
GL3SharedRenderObjectPrimitives
into a drawable formConstructor 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, releaseDispose
isValid
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, notify, notifyAll, toString, wait, wait, wait
disposeInvalid, disposeUnreferenced, releaseDispose
dispose, disposeInvalid, disposeUnreferenced, isValid, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
public GL3SharedRenderObjectPrimitivesDrawable(GL3SharedRenderObjectPrimitives glo)
public int getBindVersion()
GL3SharedDrawable
getBindVersion
in interface GL3SharedDrawable
public void bind(com.jogamp.opengl.GL3 gl)
GL3SharedDrawable
bind
in interface GL3SharedDrawable
gl
- active contextpublic GL3SharedRenderObjectPrimitivesDrawable acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GL3SharedDrawable
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3ResourceBase
public void dispose(com.jogamp.opengl.GL3 gl)
GL3Resource
dispose
in interface GL3Resource
dispose
in class GL3ResourceBase
gl
- active contextpublic boolean isDisposed()
GLResource
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase
public boolean equals(GL3SharedDrawable other)
GL3SharedDrawable
equals
in interface GL3SharedDrawable
other
- drawable to compare topublic int hashCode()
GL3SharedDrawable
hashCode
in interface GL3SharedDrawable
hashCode
in class java.lang.Object
public 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)
GL3SharedDrawable
draw
in interface GL3SharedDrawable
gl
- active contextpublic void drawInstanced(com.jogamp.opengl.GL3 gl, int instanceCount)
GL3SharedDrawable
drawInstanced
in interface GL3SharedDrawable
gl
- context handleinstanceCount
- number of instances