public class GL3SharedRenderObjectVertices extends GL3SharedRenderObjectBase
Modifier and Type | Method and Description |
---|---|
GL3SharedRenderObjectPrimitives |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
dispose(com.jogamp.opengl.GL3 gl)
Discard data, regardless of references
|
void |
drawElements(com.jogamp.opengl.GL3 gl,
int mode,
int count,
int type,
int offset) |
void |
drawInstancedElements(com.jogamp.opengl.GL3 gl,
int mode,
int count,
int type,
int offset,
int instanceCount) |
void |
drawVertices(com.jogamp.opengl.GL3 gl,
int mode) |
static GL3SharedRenderObjectVertices |
generate(com.jogamp.opengl.GL3 gl,
RenderObject robj,
GL3VertexAttributeInfo position,
GL3VertexAttributeInfo normal,
GL3VertexAttributeInfo color,
GL3VertexAttributeInfo texcoord) |
boolean |
isValid()
Returns true if resource can be used (i.e.
|
boolean |
maybeUpdate(com.jogamp.opengl.GL3 gl,
RenderObject robj) |
bindVertices, getBindVersion, getRenderObjectIdentifier, isDisposed, unbindVertices
dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireAndCount, getReferenceCount, release, releaseAndCount
public boolean maybeUpdate(com.jogamp.opengl.GL3 gl, RenderObject robj)
public boolean isValid()
GLResource
isValid
in interface GLResource
isValid
in class GL3SharedRenderObjectBase
true
if the resource can be usedpublic void dispose(com.jogamp.opengl.GL3 gl)
GL3Resource
dispose
in interface GL3Resource
dispose
in class GL3SharedRenderObjectBase
gl
- active contextpublic GL3SharedRenderObjectPrimitives acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3SharedRenderObjectBase
public void drawVertices(com.jogamp.opengl.GL3 gl, int mode)
public void drawElements(com.jogamp.opengl.GL3 gl, int mode, int count, int type, int offset)
public void drawInstancedElements(com.jogamp.opengl.GL3 gl, int mode, int count, int type, int offset, int instanceCount)
public static GL3SharedRenderObjectVertices generate(com.jogamp.opengl.GL3 gl, RenderObject robj, GL3VertexAttributeInfo position, GL3VertexAttributeInfo normal, GL3VertexAttributeInfo color, GL3VertexAttributeInfo texcoord)