public class ClipPlanesUBO extends UniformBufferObject
Modifier and Type | Method and Description |
---|---|
ClipPlanesUBO |
acquire()
Signal the resource that something is holding a reference to it.
|
static ClipPlanesUBO |
generate(com.jogamp.opengl.GL3 gl,
int progId,
int nClipPlanes) |
int |
updateClipPlanes(com.jogamp.opengl.GL3 gl,
GLClipPlane[] clips)
Returns the number of enabled clip distances
|
int |
updateClipPlanes(com.jogamp.opengl.GL3 gl,
java.util.List<GLClipPlane> clips)
Returns the number of enabled clip distances
|
void |
updateClipPlanes(com.jogamp.opengl.GL3 gl,
Plane[] clips) |
bindLocation, dispose, generate, getAttribute, getBlockName, getBuffer, getByteOffset, getSize, numAttributes, set, update, update
allocate, bind, fill, fill, fill, flushBufferRange, generate, getId, getUsage, isDisposed, mapBuffer, mapBufferRange, mapNewBuffer, unbind, unmapBuffer, update
dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDispose
isValid
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isValid
acquireAndCount, getReferenceCount, release, releaseAndCount
public void updateClipPlanes(com.jogamp.opengl.GL3 gl, Plane[] clips)
public int updateClipPlanes(com.jogamp.opengl.GL3 gl, GLClipPlane[] clips)
public int updateClipPlanes(com.jogamp.opengl.GL3 gl, java.util.List<GLClipPlane> clips)
public ClipPlanesUBO acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class UniformBufferObject
public static ClipPlanesUBO generate(com.jogamp.opengl.GL3 gl, int progId, int nClipPlanes)