public class GL3ProgramManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
Constructor and Description |
---|
GL3ProgramManager() |
Modifier and Type | Method and Description |
---|---|
void |
activateTexture(com.jogamp.opengl.GL3 gl,
java.lang.String name) |
void |
addSharedAttribute(java.lang.String attribute,
int location) |
void |
addSharedTexture(java.lang.String textureName,
int location) |
void |
addSharedUniformBlock(java.lang.String blockName,
int location) |
void |
addSharedUniformBufferObject(UniformBufferObject ubo) |
void |
bindTexture(com.jogamp.opengl.GL3 gl,
java.lang.String name,
GLTexture tex) |
void |
dispose(com.jogamp.opengl.GL3 gl) |
GLShaderProgram |
getProgram(com.jogamp.opengl.GL3 gl,
GLProgramInfo key) |
GLShaderProgram |
getProgram(com.jogamp.opengl.GL3 gl,
java.lang.Object key) |
GLShaderProgram |
getProgram(com.jogamp.opengl.GL3 gl,
java.lang.Object key,
java.io.File[] shaders) |
GLShaderProgram |
getProgram(com.jogamp.opengl.GL3 gl,
java.lang.Object key,
java.lang.String[] shaders) |
GLShaderProgram |
getSelectionProgram(com.jogamp.opengl.GL3 gl,
GLProgramInfo info) |
int |
getSharedAttributeLocation(java.lang.String name) |
int |
getSharedTextureLocation(java.lang.String name) |
int |
getUniformBlockLocation(java.lang.String name) |
void |
init(com.jogamp.opengl.GL3 gl,
int nLights,
int nClipPlanes) |
int |
numClipPlanes() |
int |
numLights() |
void |
reconfigure(com.jogamp.opengl.GL3 gl,
int nLights,
int nClipPlanes) |
int |
setClipPlanes(com.jogamp.opengl.GL3 gl,
GLClipPlane[] clips) |
int |
setClipPlanes(com.jogamp.opengl.GL3 gl,
java.util.List<GLClipPlane> clips) |
void |
setClipPlanes(com.jogamp.opengl.GL3 gl,
Plane[] clips) |
void |
setLights(com.jogamp.opengl.GL3 gl,
java.util.List<Light> lights,
float intensityScale,
RigidTransform3d viewMatrix) |
void |
setMaterialDiffuse(com.jogamp.opengl.GL3 gl,
float[] frontRgba,
float[] backRgba) |
void |
setMaterials(com.jogamp.opengl.GL3 gl,
Material frontMaterial,
float[] frontDiffuse,
Material backMaterial,
float[] backDiffuse) |
void |
setMaterials(com.jogamp.opengl.GL3 gl,
Material frontMaterial,
Material backMaterial) |
void |
setMatrices(com.jogamp.opengl.GL3 gl,
Matrix4d projection,
RigidTransform3d view,
AffineTransform3dBase model,
Matrix3d modelNormal) |
void |
setMatrices(com.jogamp.opengl.GL3 gl,
Matrix4d projection,
RigidTransform3d view,
AffineTransform3dBase model,
Matrix3d modelNormal,
AffineTransform2dBase texture) |
void |
setSelectionColor(com.jogamp.opengl.GL3 gl,
GLShaderProgram prog,
float[] rgba) |
void |
setUniform(com.jogamp.opengl.GL3 gl,
GLShaderProgram prog,
java.lang.String name,
float val) |
void |
setUniform(com.jogamp.opengl.GL3 gl,
GLShaderProgram prog,
java.lang.String name,
int val) |
void |
setUniform4f(com.jogamp.opengl.GL3 gl,
GLShaderProgram prog,
java.lang.String name,
float[] v) |
void |
unbindTexture(com.jogamp.opengl.GL3 gl,
java.lang.String name,
GLTexture tex) |
public void addSharedAttribute(java.lang.String attribute, int location)
public void addSharedTexture(java.lang.String textureName, int location)
public void addSharedUniformBlock(java.lang.String blockName, int location)
public void addSharedUniformBufferObject(UniformBufferObject ubo)
public int getSharedAttributeLocation(java.lang.String name)
public int getSharedTextureLocation(java.lang.String name)
public int getUniformBlockLocation(java.lang.String name)
public GLShaderProgram getSelectionProgram(com.jogamp.opengl.GL3 gl, GLProgramInfo info)
public GLShaderProgram getProgram(com.jogamp.opengl.GL3 gl, GLProgramInfo key)
public GLShaderProgram getProgram(com.jogamp.opengl.GL3 gl, java.lang.Object key, java.lang.String[] shaders)
public GLShaderProgram getProgram(com.jogamp.opengl.GL3 gl, java.lang.Object key)
public GLShaderProgram getProgram(com.jogamp.opengl.GL3 gl, java.lang.Object key, java.io.File[] shaders)
public void dispose(com.jogamp.opengl.GL3 gl)
public void init(com.jogamp.opengl.GL3 gl, int nLights, int nClipPlanes)
public void reconfigure(com.jogamp.opengl.GL3 gl, int nLights, int nClipPlanes)
public int numLights()
public int numClipPlanes()
public void setMatrices(com.jogamp.opengl.GL3 gl, Matrix4d projection, RigidTransform3d view, AffineTransform3dBase model, Matrix3d modelNormal)
public void setMatrices(com.jogamp.opengl.GL3 gl, Matrix4d projection, RigidTransform3d view, AffineTransform3dBase model, Matrix3d modelNormal, AffineTransform2dBase texture)
public void setMaterials(com.jogamp.opengl.GL3 gl, Material frontMaterial, Material backMaterial)
public void setMaterials(com.jogamp.opengl.GL3 gl, Material frontMaterial, float[] frontDiffuse, Material backMaterial, float[] backDiffuse)
public void setMaterialDiffuse(com.jogamp.opengl.GL3 gl, float[] frontRgba, float[] backRgba)
public void setUniform(com.jogamp.opengl.GL3 gl, GLShaderProgram prog, java.lang.String name, int val)
public void setUniform(com.jogamp.opengl.GL3 gl, GLShaderProgram prog, java.lang.String name, float val)
public void setUniform4f(com.jogamp.opengl.GL3 gl, GLShaderProgram prog, java.lang.String name, float[] v)
public void setSelectionColor(com.jogamp.opengl.GL3 gl, GLShaderProgram prog, float[] rgba)
public void setLights(com.jogamp.opengl.GL3 gl, java.util.List<Light> lights, float intensityScale, RigidTransform3d viewMatrix)
public void setClipPlanes(com.jogamp.opengl.GL3 gl, Plane[] clips)
public int setClipPlanes(com.jogamp.opengl.GL3 gl, GLClipPlane[] clips)
public int setClipPlanes(com.jogamp.opengl.GL3 gl, java.util.List<GLClipPlane> clips)
public void bindTexture(com.jogamp.opengl.GL3 gl, java.lang.String name, GLTexture tex)
public void activateTexture(com.jogamp.opengl.GL3 gl, java.lang.String name)
public void unbindTexture(com.jogamp.opengl.GL3 gl, java.lang.String name, GLTexture tex)