public class GL3Object extends GL3ResourceBase implements GL3Drawable
| Modifier and Type | Method and Description |
|---|---|
GL3Object |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bind(com.jogamp.opengl.GL3 gl)
Bind attributes to the VAO to prepare for drawing
|
void |
dispose(com.jogamp.opengl.GL3 gl)
Discard data, regardless of references
|
void |
draw(com.jogamp.opengl.GL3 gl) |
void |
draw(com.jogamp.opengl.GL3 gl,
int start,
int count) |
void |
draw(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count) |
void |
drawArrays(com.jogamp.opengl.GL3 gl,
int mode) |
void |
drawArrays(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count) |
void |
drawElements(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count,
int indexType) |
void |
drawInstancedArray(com.jogamp.opengl.GL3 gl,
GLShaderProgram prog,
int mode,
int start,
int count,
int instances) |
void |
drawInstancedElements(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count,
int instances) |
static GL3Object |
generate(com.jogamp.opengl.GL3 gl,
GL3SharedObject glo) |
GL3SharedObject |
getShared() |
boolean |
isDisposed()
Returns true if resource has been disposed
|
boolean |
isValid()
Returns true if resource can be used (i.e.
|
dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDisposeacquireAndCount, getReferenceCount, release, releaseAndCountequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposeInvalidacquireAndCount, getReferenceCount, release, releaseAndCountpublic void bind(com.jogamp.opengl.GL3 gl)
public void dispose(com.jogamp.opengl.GL3 gl)
GL3Resourcedispose in interface GL3Drawabledispose in interface GL3Resourcedispose in class GL3ResourceBasegl - active contextpublic boolean isDisposed()
GLResourceisDisposed in interface GL3DrawableisDisposed in interface GLResourceisDisposed in class GLResourceBasetrue if the drawable has been disposedpublic boolean isValid()
GLResourceisValid in interface GL3DrawableisValid in interface GLResourceisValid in class GLResourceBasetrue if the resource can be usedpublic GL3SharedObject getShared()
public GL3Object acquire()
ReferenceCountedacquire in interface GL3Resourceacquire in interface GLResourceacquire in interface ReferenceCountedacquire in class GL3ResourceBasepublic void draw(com.jogamp.opengl.GL3 gl)
public void drawArrays(com.jogamp.opengl.GL3 gl,
int mode)
public void drawArrays(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count)
public void drawElements(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count,
int indexType)
public void drawInstancedArray(com.jogamp.opengl.GL3 gl,
GLShaderProgram prog,
int mode,
int start,
int count,
int instances)
public void drawInstancedElements(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count,
int instances)
public void draw(com.jogamp.opengl.GL3 gl,
int start,
int count)
public void draw(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count)
public static GL3Object generate(com.jogamp.opengl.GL3 gl, GL3SharedObject glo)