public abstract class GL2ResourceBase extends GLResourceBase implements GL2Resource
Modifier and Type | Method and Description |
---|---|
GL2ResourceBase |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
dispose(com.jogamp.opengl.GL gl)
Discard data, regardless of existing references
|
abstract void |
dispose(com.jogamp.opengl.GL2 gl)
Discard data, regardless of references
|
boolean |
disposeInvalid(com.jogamp.opengl.GL gl)
Dispose an invalid resource
|
boolean |
disposeInvalid(com.jogamp.opengl.GL2 gl) |
boolean |
disposeUnreferenced(com.jogamp.opengl.GL gl)
Dispose if object is unreferenced
|
boolean |
disposeUnreferenced(com.jogamp.opengl.GL2 gl) |
boolean |
releaseDispose(com.jogamp.opengl.GL gl)
Decrement reference count and dispose if no longer referenced,
returning true if disposed
|
boolean |
releaseDispose(com.jogamp.opengl.GL2 gl) |
isDisposed, isValid
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDisposed, isValid
acquireAndCount, getReferenceCount, release, releaseAndCount
public abstract void dispose(com.jogamp.opengl.GL2 gl)
GL2Resource
dispose
in interface GL2Resource
public void dispose(com.jogamp.opengl.GL gl)
GLResource
dispose
in interface GLResource
dispose
in class GLResourceBase
public boolean disposeInvalid(com.jogamp.opengl.GL2 gl)
disposeInvalid
in interface GL2Resource
public boolean disposeInvalid(com.jogamp.opengl.GL gl)
GLResource
disposeInvalid
in interface GLResource
disposeInvalid
in class GLResourceBase
public boolean disposeUnreferenced(com.jogamp.opengl.GL2 gl)
disposeUnreferenced
in interface GL2Resource
public boolean disposeUnreferenced(com.jogamp.opengl.GL gl)
GLResource
disposeUnreferenced
in interface GLResource
disposeUnreferenced
in class GLResourceBase
gl
- contextpublic boolean releaseDispose(com.jogamp.opengl.GL2 gl)
releaseDispose
in interface GL2Resource
public boolean releaseDispose(com.jogamp.opengl.GL gl)
GLResource
releaseDispose
in interface GLResource
releaseDispose
in class GLResourceBase
public GL2ResourceBase acquire()
ReferenceCounted
acquire
in interface GL2Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GLResourceBase