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(javax.media.opengl.GL gl)
Discard data, regardless of existing references
|
boolean |
disposeInvalid(javax.media.opengl.GL gl)
Dispose an invalid resource
|
boolean |
disposeUnreferenced(javax.media.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(javax.media.opengl.GL gl)
Decrement reference count and dispose if no longer referenced,
returning true if disposed
|
acquireAndCount, getReferenceCount, release, releaseAndCount
boolean releaseDispose(javax.media.opengl.GL gl)
boolean disposeUnreferenced(javax.media.opengl.GL gl)
gl
- contextvoid dispose(javax.media.opengl.GL gl)
boolean isDisposed()
boolean isValid()
true
if the resource can be usedboolean disposeInvalid(javax.media.opengl.GL gl)
gl
- GLResource acquire()
ReferenceCounted
acquire
in interface ReferenceCounted