public class GL3RenderObjectLines extends GL3ResourceBase
Modifier and Type | Method and Description |
---|---|
GL3RenderObjectLines |
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 |
bindInstanced(com.jogamp.opengl.GL3 gl,
GL3SharedObject line,
int gidx,
int offset) |
void |
dispose(com.jogamp.opengl.GL3 gl)
Discard data, regardless of references
|
void |
drawInstancedLineGroup(com.jogamp.opengl.GL3 gl,
GL3Object line,
int gidx) |
void |
drawInstancedLineGroup(com.jogamp.opengl.GL3 gl,
GL3Object line,
int gidx,
int offset,
int count) |
void |
drawInstancedLineGroup(com.jogamp.opengl.GL3 gl,
GL3SharedObject line,
int gidx) |
void |
drawInstancedLineGroup(com.jogamp.opengl.GL3 gl,
GL3SharedObject line,
int gidx,
int offset,
int count) |
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) |
static GL3RenderObjectLines |
generate(com.jogamp.opengl.GL3 gl,
GL3LinesVertexBuffer lineVBO,
GL3SharedRenderObjectLines lines) |
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) |
void |
setRadius(com.jogamp.opengl.GL3 gl,
float r) |
void |
setRadiusOffsets(com.jogamp.opengl.GL3 gl,
float r,
float[] bottomScaleOffset,
float[] topScaleOffset) |
void |
unbind(com.jogamp.opengl.GL3 gl) |
void |
unbindInstanced(com.jogamp.opengl.GL3 gl,
int gidx) |
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 void bind(com.jogamp.opengl.GL3 gl)
public void unbind(com.jogamp.opengl.GL3 gl)
public void bindInstanced(com.jogamp.opengl.GL3 gl, GL3SharedObject line, int gidx, int offset)
public void unbindInstanced(com.jogamp.opengl.GL3 gl, int gidx)
public void dispose(com.jogamp.opengl.GL3 gl)
GL3Resource
dispose
in interface GL3Resource
dispose
in class GL3ResourceBase
gl
- active contextpublic boolean isDisposed()
GLResource
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase
public boolean isValid()
GLResource
isValid
in interface GLResource
isValid
in class GLResourceBase
true
if the resource can be usedpublic GL3RenderObjectLines acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3ResourceBase
public boolean maybeUpdate(com.jogamp.opengl.GL3 gl, RenderObject robj)
public void setRadius(com.jogamp.opengl.GL3 gl, float r)
public void setRadiusOffsets(com.jogamp.opengl.GL3 gl, float r, float[] bottomScaleOffset, float[] topScaleOffset)
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 drawInstancedLineGroup(com.jogamp.opengl.GL3 gl, GL3SharedObject line, int gidx)
public void drawInstancedLineGroup(com.jogamp.opengl.GL3 gl, GL3SharedObject line, int gidx, int offset, int count)
public void drawInstancedLineGroup(com.jogamp.opengl.GL3 gl, GL3Object line, int gidx)
public void drawInstancedLineGroup(com.jogamp.opengl.GL3 gl, GL3Object line, int gidx, int offset, int count)
public static GL3RenderObjectLines generate(com.jogamp.opengl.GL3 gl, GL3LinesVertexBuffer lineVBO, GL3SharedRenderObjectLines lines)