public class GL3SharedRenderObjectLines extends GL3SharedRenderObjectBase
Modifier and Type | Method and Description |
---|---|
GL3SharedRenderObjectLines |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bindInstancedVertices(com.jogamp.opengl.GL3 gl,
int gidx,
int offset)
Bind with a line-offset (e.g.
|
void |
drawInstancedLines(com.jogamp.opengl.GL3 gl,
GL3SharedObject line,
int gidx) |
void |
drawInstancedLines(com.jogamp.opengl.GL3 gl,
GL3SharedObject line,
int gidx,
int count) |
void |
drawLines(com.jogamp.opengl.GL3 gl,
int mode,
int gidx) |
void |
drawLines(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count) |
static GL3SharedRenderObjectLines |
generate(com.jogamp.opengl.GL3 gl,
RenderObject robj,
GL3VertexAttributeInfo position,
GL3VertexAttributeInfo normal,
GL3VertexAttributeInfo color,
GL3VertexAttributeInfo texcoord,
GL3VertexAttributeInfo bpos,
GL3VertexAttributeInfo tpos,
GL3VertexAttributeInfo bclr,
GL3VertexAttributeInfo tclr) |
boolean |
isValid()
Returns true if resource can be used (i.e.
|
boolean |
maybeUpdate(com.jogamp.opengl.GL3 gl,
RenderObject robj) |
int |
numLineGroups() |
int |
numLines(int gidx) |
bindVertices, dispose, 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 int numLineGroups()
public void bindInstancedVertices(com.jogamp.opengl.GL3 gl, int gidx, int offset)
public GL3SharedRenderObjectLines acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3SharedRenderObjectBase
public void drawLines(com.jogamp.opengl.GL3 gl, int mode, int gidx)
public void drawLines(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count)
public void drawInstancedLines(com.jogamp.opengl.GL3 gl, GL3SharedObject line, int gidx)
public void drawInstancedLines(com.jogamp.opengl.GL3 gl, GL3SharedObject line, int gidx, int count)
public static GL3SharedRenderObjectLines generate(com.jogamp.opengl.GL3 gl, RenderObject robj, GL3VertexAttributeInfo position, GL3VertexAttributeInfo normal, GL3VertexAttributeInfo color, GL3VertexAttributeInfo texcoord, GL3VertexAttributeInfo bpos, GL3VertexAttributeInfo tpos, GL3VertexAttributeInfo bclr, GL3VertexAttributeInfo tclr)
public int numLines(int gidx)