public class GL3SharedRenderObjectPoints extends GL3SharedRenderObjectBase
Constructor and Description |
---|
GL3SharedRenderObjectPoints(RenderObject r,
GL3VertexAttributeInfo posAttribute,
GL3VertexAttributeInfo nrmAttribute,
GL3VertexAttributeInfo clrAttribute,
GL3VertexAttributeInfo texAttribute,
GL3VertexAttributeInfo pposAttr,
GL3VertexAttributeInfo pclrAttr,
VertexBufferObject staticVBO,
VertexBufferObject dynamicVBO) |
Modifier and Type | Method and Description |
---|---|
GL3SharedRenderObjectPoints |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bindInstancedVertices(com.jogamp.opengl.GL3 gl,
int gidx) |
void |
bindInstancedVertices(com.jogamp.opengl.GL3 gl,
int gidx,
int offset) |
void |
drawInstancedPoints(com.jogamp.opengl.GL3 gl,
GL3SharedObject point,
int gidx) |
void |
drawInstancedPoints(com.jogamp.opengl.GL3 gl,
GL3SharedObject point,
int gidx,
int count) |
void |
drawPoints(com.jogamp.opengl.GL3 gl,
int mode,
int gidx) |
void |
drawPoints(com.jogamp.opengl.GL3 gl,
int mode,
int gidx,
int offset,
int count) |
static GL3SharedRenderObjectPoints |
generate(com.jogamp.opengl.GL3 gl,
RenderObject robj,
GL3VertexAttributeInfo position,
GL3VertexAttributeInfo normal,
GL3VertexAttributeInfo color,
GL3VertexAttributeInfo texcoord,
GL3VertexAttributeInfo pointpos,
GL3VertexAttributeInfo pointclr) |
boolean |
isValid()
Returns true if resource can be used (i.e.
|
boolean |
maybeUpdate(com.jogamp.opengl.GL3 gl,
RenderObject robj)
Potentially update the internal VBOs
|
int |
numPointGroups() |
int |
numPoints(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 GL3SharedRenderObjectPoints(RenderObject r, GL3VertexAttributeInfo posAttribute, GL3VertexAttributeInfo nrmAttribute, GL3VertexAttributeInfo clrAttribute, GL3VertexAttributeInfo texAttribute, GL3VertexAttributeInfo pposAttr, GL3VertexAttributeInfo pclrAttr, VertexBufferObject staticVBO, VertexBufferObject dynamicVBO)
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 numPointGroups()
public int numPoints(int gidx)
public void bindInstancedVertices(com.jogamp.opengl.GL3 gl, int gidx)
public void bindInstancedVertices(com.jogamp.opengl.GL3 gl, int gidx, int offset)
public GL3SharedRenderObjectPoints acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3SharedRenderObjectBase
public void drawPoints(com.jogamp.opengl.GL3 gl, int mode, int gidx)
public void drawPoints(com.jogamp.opengl.GL3 gl, int mode, int gidx, int offset, int count)
public void drawInstancedPoints(com.jogamp.opengl.GL3 gl, GL3SharedObject point, int gidx)
public void drawInstancedPoints(com.jogamp.opengl.GL3 gl, GL3SharedObject point, int gidx, int count)
public static GL3SharedRenderObjectPoints generate(com.jogamp.opengl.GL3 gl, RenderObject robj, GL3VertexAttributeInfo position, GL3VertexAttributeInfo normal, GL3VertexAttributeInfo color, GL3VertexAttributeInfo texcoord, GL3VertexAttributeInfo pointpos, GL3VertexAttributeInfo pointclr)