public class MatricesUBO extends UniformBufferObject
Modifier and Type | Method and Description |
---|---|
MatricesUBO |
acquire()
Signal the resource that something is holding a reference to it.
|
static MatricesUBO |
generate(com.jogamp.opengl.GL3 gl,
int progId) |
static void |
putMatrix(java.nio.ByteBuffer buff,
AffineTransform2dBase T) |
static void |
putMatrix(java.nio.ByteBuffer buff,
AffineTransform3dBase T) |
void |
updateMatrices(com.jogamp.opengl.GL3 gl,
Matrix4d proj,
RigidTransform3d view,
AffineTransform3dBase model,
AffineTransform2dBase texture) |
void |
updateMatrices(com.jogamp.opengl.GL3 gl,
Matrix4d proj,
RigidTransform3d view,
AffineTransform3dBase model,
Matrix3d modelNormal,
AffineTransform2dBase texture) |
bindLocation, dispose, generate, getAttribute, getBlockName, getBuffer, getByteOffset, getSize, numAttributes, set, update, update
allocate, bind, fill, fill, fill, flushBufferRange, 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 updateMatrices(com.jogamp.opengl.GL3 gl, Matrix4d proj, RigidTransform3d view, AffineTransform3dBase model, AffineTransform2dBase texture)
public void updateMatrices(com.jogamp.opengl.GL3 gl, Matrix4d proj, RigidTransform3d view, AffineTransform3dBase model, Matrix3d modelNormal, AffineTransform2dBase texture)
public static void putMatrix(java.nio.ByteBuffer buff, AffineTransform3dBase T)
public static void putMatrix(java.nio.ByteBuffer buff, AffineTransform2dBase T)
public MatricesUBO acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class UniformBufferObject
public static MatricesUBO generate(com.jogamp.opengl.GL3 gl, int progId)