public class GLRenderBuffer extends GLResourceBase
Constructor and Description |
---|
GLRenderBuffer(int id) |
Modifier and Type | Method and Description |
---|---|
GLRenderBuffer |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bind(com.jogamp.opengl.GL gl) |
void |
configure(com.jogamp.opengl.GL gl,
int width,
int height,
int format,
int nsamples) |
void |
dispose(com.jogamp.opengl.GL gl)
Discard data, regardless of existing references
|
static GLRenderBuffer |
generate(com.jogamp.opengl.GL gl) |
int |
getFormat() |
int |
getHeight() |
int |
getId() |
int |
getNumSamples() |
int |
getWidth() |
boolean |
isDisposed()
Returns true if resource has been disposed
|
boolean |
isMultisample() |
void |
unbind(com.jogamp.opengl.GL gl) |
disposeInvalid, disposeUnreferenced, isValid, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireAndCount, getReferenceCount, release, releaseAndCount
public void bind(com.jogamp.opengl.GL gl)
public void configure(com.jogamp.opengl.GL gl, int width, int height, int format, int nsamples)
public int getId()
public int getWidth()
public int getHeight()
public int getFormat()
public int getNumSamples()
public boolean isMultisample()
public void unbind(com.jogamp.opengl.GL gl)
public GLRenderBuffer acquire()
ReferenceCounted
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GLResourceBase
public void dispose(com.jogamp.opengl.GL gl)
GLResource
dispose
in interface GLResource
dispose
in class GLResourceBase
public boolean isDisposed()
GLResource
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase
public static GLRenderBuffer generate(com.jogamp.opengl.GL gl)