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, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disposeInvalid
acquireAndCount, getReferenceCount, release, releaseAndCount
public void bind(com.jogamp.opengl.GL3 gl)
public void dispose(com.jogamp.opengl.GL3 gl)
GL3Resource
dispose
in interface GL3Drawable
dispose
in interface GL3Resource
dispose
in class GL3ResourceBase
gl
- active contextpublic boolean isDisposed()
GLResource
isDisposed
in interface GL3Drawable
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase
true
if the drawable has been disposedpublic boolean isValid()
GLResource
isValid
in interface GL3Drawable
isValid
in interface GLResource
isValid
in class GLResourceBase
true
if the resource can be usedpublic GL3SharedObject getShared()
public GL3Object acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3ResourceBase
public 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)