public class LightsUBO extends UniformBufferObject
Modifier and Type | Method and Description |
---|---|
LightsUBO |
acquire()
Signal the resource that something is holding a reference to it.
|
static LightsUBO |
generate(com.jogamp.opengl.GL3 gl,
int progId,
int nLights) |
void |
updateLights(com.jogamp.opengl.GL3 gl,
java.util.List<Light> lights,
float intensityScale,
RigidTransform3d viewMatrix) |
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 updateLights(com.jogamp.opengl.GL3 gl, java.util.List<Light> lights, float intensityScale, RigidTransform3d viewMatrix)
public LightsUBO acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class UniformBufferObject
public static LightsUBO generate(com.jogamp.opengl.GL3 gl, int progId, int nLights)