public class GL2Object extends GL2ResourceBase implements GL2Drawable
Constructor and Description |
---|
GL2Object(GL2DisplayList displayList) |
Modifier and Type | Method and Description |
---|---|
void |
beginCompile(com.jogamp.opengl.GL2 gl) |
void |
beginCompileAndDraw(com.jogamp.opengl.GL2 gl) |
void |
dispose(com.jogamp.opengl.GL2 gl)
Discard data, regardless of references
|
void |
draw(com.jogamp.opengl.GL2 gl)
Use whatever internal resources that exist and draw to provided context
|
void |
endCompile(com.jogamp.opengl.GL2 gl) |
GL2DisplayList |
getDisplayList() |
boolean |
isDisposed()
Returns true if resource has been disposed
|
boolean |
isValid()
Returns true if resource can be used (i.e.
|
acquire, dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquire, disposeInvalid, disposeUnreferenced, releaseDispose
dispose, disposeInvalid, disposeUnreferenced, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
public GL2Object(GL2DisplayList displayList)
public void draw(com.jogamp.opengl.GL2 gl)
GL2Drawable
draw
in interface GL2Drawable
public GL2DisplayList getDisplayList()
public void beginCompile(com.jogamp.opengl.GL2 gl)
public void endCompile(com.jogamp.opengl.GL2 gl)
public void beginCompileAndDraw(com.jogamp.opengl.GL2 gl)
public void dispose(com.jogamp.opengl.GL2 gl)
GL2Resource
dispose
in interface GL2Resource
dispose
in class GL2ResourceBase
public boolean isDisposed()
GLResource
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase
public boolean isValid()
GLResource
isValid
in interface GLResource
isValid
in class GLResourceBase
true
if the resource can be used