public interface GL3SharedDrawable extends GL3Resource
Modifier and Type | Method and Description |
---|---|
GL3SharedDrawable |
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 |
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
|
dispose, disposeInvalid, disposeUnreferenced, releaseDispose
dispose, disposeInvalid, disposeUnreferenced, isDisposed, isValid, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
int getBindVersion()
void bind(com.jogamp.opengl.GL3 gl)
gl
- active contextGL3SharedDrawable acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
void draw(com.jogamp.opengl.GL3 gl)
gl
- active contextvoid drawInstanced(com.jogamp.opengl.GL3 gl, int instanceCount)
gl
- context handleinstanceCount
- number of instancesboolean equals(GL3SharedDrawable other)
other
- drawable to compare toint hashCode()
hashCode
in class java.lang.Object