public class MaterialsUBO extends UniformBufferObject
Modifier and Type | Method and Description |
---|---|
MaterialsUBO |
acquire()
Signal the resource that something is holding a reference to it.
|
static MaterialsUBO |
generate(com.jogamp.opengl.GL3 gl,
int progId) |
void |
setMaterials(com.jogamp.opengl.GL3 gl,
Material frontMaterial,
Material backMaterial) |
void |
updateColor(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer buff,
int cidx) |
void |
updateColor(com.jogamp.opengl.GL3 gl,
float[] rgba,
int cidx) |
void |
updateMaterials(com.jogamp.opengl.GL3 gl,
Material frontMaterial,
float[] frontDiffuse,
Material backMaterial,
float[] backDiffuse) |
void |
updateMaterials(com.jogamp.opengl.GL3 gl,
Material frontMaterial,
Material backMaterial) |
void |
updatePower(com.jogamp.opengl.GL3 gl,
float[] p) |
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 setMaterials(com.jogamp.opengl.GL3 gl, Material frontMaterial, Material backMaterial)
public void updateMaterials(com.jogamp.opengl.GL3 gl, Material frontMaterial, Material backMaterial)
public void updateMaterials(com.jogamp.opengl.GL3 gl, Material frontMaterial, float[] frontDiffuse, Material backMaterial, float[] backDiffuse)
public void updateColor(com.jogamp.opengl.GL3 gl, java.nio.ByteBuffer buff, int cidx)
public void updatePower(com.jogamp.opengl.GL3 gl, float[] p)
public void updateColor(com.jogamp.opengl.GL3 gl, float[] rgba, int cidx)
public MaterialsUBO acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class UniformBufferObject
public static MaterialsUBO generate(com.jogamp.opengl.GL3 gl, int progId)