public interface GLResource extends ReferenceCounted
Modifier and Type | Method and Description |
---|---|
GLResource |
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
|
boolean |
disposeInvalid(com.jogamp.opengl.GL gl)
Dispose an invalid resource
|
boolean |
disposeUnreferenced(com.jogamp.opengl.GL gl)
Dispose if object is unreferenced
|
boolean |
isDisposed()
Returns true if resource has been disposed
|
boolean |
isValid()
Returns true if resource can be used (i.e.
|
boolean |
releaseDispose(com.jogamp.opengl.GL gl)
Decrement reference count and dispose if no longer referenced,
returning true if disposed
|
acquireAndCount, getReferenceCount, release, releaseAndCount
boolean releaseDispose(com.jogamp.opengl.GL gl)
boolean disposeUnreferenced(com.jogamp.opengl.GL gl)
gl
- contextvoid dispose(com.jogamp.opengl.GL gl)
boolean isDisposed()
boolean isValid()
true
if the resource can be usedboolean disposeInvalid(com.jogamp.opengl.GL gl)
GLResource acquire()
ReferenceCounted
acquire
in interface ReferenceCounted