public class GL3RenderObjectElements extends GL3ResourceBase
| Modifier and Type | Method and Description |
|---|---|
GL3RenderObjectElements |
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 |
drawElements(com.jogamp.opengl.GL3 gl,
int mode) |
void |
drawElements(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count) |
void |
drawVertices(com.jogamp.opengl.GL3 gl,
int mode) |
static GL3RenderObjectElements |
generate(com.jogamp.opengl.GL3 gl,
GL3SharedRenderObjectPrimitives glo,
GL3SharedVertexIndexArray via) |
boolean |
isDisposed()
Returns true if resource has been disposed
|
boolean |
isValid()
Returns true if resource can be used (i.e.
|
boolean |
maybeUpdate(com.jogamp.opengl.GL3 gl,
RenderObject robj,
VertexIndexArray elements) |
void |
unbind(com.jogamp.opengl.GL3 gl) |
dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDisposeacquireAndCount, getReferenceCount, release, releaseAndCountequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireAndCount, getReferenceCount, release, releaseAndCountpublic void bind(com.jogamp.opengl.GL3 gl)
public void unbind(com.jogamp.opengl.GL3 gl)
public void dispose(com.jogamp.opengl.GL3 gl)
GL3Resourcedispose in interface GL3Resourcedispose in class GL3ResourceBasegl - active contextpublic boolean isDisposed()
GLResourceisDisposed in interface GLResourceisDisposed in class GLResourceBasepublic boolean isValid()
GLResourceisValid in interface GLResourceisValid in class GLResourceBasetrue if the resource can be usedpublic GL3RenderObjectElements acquire()
ReferenceCountedacquire in interface GL3Resourceacquire in interface GLResourceacquire in interface ReferenceCountedacquire in class GL3ResourceBasepublic boolean maybeUpdate(com.jogamp.opengl.GL3 gl,
RenderObject robj,
VertexIndexArray elements)
public void drawVertices(com.jogamp.opengl.GL3 gl,
int mode)
public void drawElements(com.jogamp.opengl.GL3 gl,
int mode)
public void drawElements(com.jogamp.opengl.GL3 gl,
int mode,
int start,
int count)
public static GL3RenderObjectElements generate(com.jogamp.opengl.GL3 gl, GL3SharedRenderObjectPrimitives glo, GL3SharedVertexIndexArray via)