public class GL3SharedRenderObjectPrimitives extends GL3SharedRenderObjectVertices
Modifier and Type | Method and Description |
---|---|
GL3SharedRenderObjectPrimitives |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bindIndices(com.jogamp.opengl.GL3 gl) |
void |
dispose(com.jogamp.opengl.GL3 gl)
Discard data, regardless of references
|
void |
drawInstancedLineGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int instanceCount) |
void |
drawInstancedLineGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count,
int instanceCount) |
void |
drawInstancedPointGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int instanceCount) |
void |
drawInstancedPointGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count,
int instanceCount) |
void |
drawInstancedTriangleGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int instanceCount) |
void |
drawInstancedTriangleGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count,
int instanceCount) |
void |
drawLineGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx) |
void |
drawLineGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count) |
void |
drawPointGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx) |
void |
drawPointGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count) |
void |
drawTriangleGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx) |
void |
drawTriangleGroup(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count) |
static GL3SharedRenderObjectPrimitives |
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) |
drawElements, drawInstancedElements, drawVertices
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)
maybeUpdate
in class GL3SharedRenderObjectVertices
public boolean isValid()
GLResource
isValid
in interface GLResource
isValid
in class GL3SharedRenderObjectVertices
true
if the resource can be usedpublic void dispose(com.jogamp.opengl.GL3 gl)
GL3Resource
dispose
in interface GL3Resource
dispose
in class GL3SharedRenderObjectVertices
gl
- active contextpublic void bindIndices(com.jogamp.opengl.GL3 gl)
public GL3SharedRenderObjectPrimitives acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3SharedRenderObjectVertices
public void drawPointGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx)
public void drawPointGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count)
public void drawLineGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx)
public void drawLineGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count)
public void drawTriangleGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx)
public void drawTriangleGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count)
public void drawInstancedPointGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int instanceCount)
public void drawInstancedPointGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count, int instanceCount)
public void drawInstancedLineGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int instanceCount)
public void drawInstancedLineGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count, int instanceCount)
public void drawInstancedTriangleGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int instanceCount)
public void drawInstancedTriangleGroup(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count, int instanceCount)
public static GL3SharedRenderObjectPrimitives generate(com.jogamp.opengl.GL3 gl, RenderObject robj, GL3VertexAttributeInfo position, GL3VertexAttributeInfo normal, GL3VertexAttributeInfo color, GL3VertexAttributeInfo texcoord)