public abstract class GL3ResourceBase extends GLResourceBase implements GL3Resource
Modifier and Type | Method and Description |
---|---|
GL3ResourceBase |
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.GL3 gl)
Discard data, regardless of references
|
boolean |
disposeInvalid(com.jogamp.opengl.GL gl)
Dispose an invalid resource
|
boolean |
disposeInvalid(com.jogamp.opengl.GL3 gl)
Dispose data if the resource is in an invalid state
|
boolean |
disposeUnreferenced(com.jogamp.opengl.GL gl)
Dispose if object is unreferenced
|
boolean |
disposeUnreferenced(com.jogamp.opengl.GL3 gl)
Dispose if there are currently no held references
|
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.GL3 gl)
Release reference and dispose if there are no
more references
|
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.GL3 gl)
GL3Resource
dispose
in interface GL3Resource
gl
- active contextpublic void dispose(com.jogamp.opengl.GL gl)
GLResource
dispose
in interface GLResource
dispose
in class GLResourceBase
public boolean disposeInvalid(com.jogamp.opengl.GL3 gl)
GL3Resource
disposeInvalid
in interface GL3Resource
gl
- active contextpublic boolean disposeInvalid(com.jogamp.opengl.GL gl)
GLResource
disposeInvalid
in interface GLResource
disposeInvalid
in class GLResourceBase
public boolean disposeUnreferenced(com.jogamp.opengl.GL3 gl)
GL3Resource
disposeUnreferenced
in interface GL3Resource
gl
- active contextpublic boolean disposeUnreferenced(com.jogamp.opengl.GL gl)
GLResource
disposeUnreferenced
in interface GLResource
disposeUnreferenced
in class GLResourceBase
gl
- contextpublic boolean releaseDispose(com.jogamp.opengl.GL3 gl)
GL3Resource
releaseDispose
in interface GL3Resource
gl
- active contextpublic boolean releaseDispose(com.jogamp.opengl.GL gl)
GLResource
releaseDispose
in interface GLResource
releaseDispose
in class GLResourceBase
public GL3ResourceBase acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GLResourceBase