public class GlslProgram extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GlslProgram.UniformValue |
Constructor and Description |
---|
GlslProgram(Appearance app,
EffectiveAppearance eap,
String prefix)
this makes only sense if app is the last appearance pushed on the EffectiveAppearance stack!
|
GlslProgram(Appearance app,
String prefix) |
GlslProgram(Appearance app,
String prefix,
GlslSource s) |
GlslProgram(Appearance app,
String prefix,
Input vertexProgram,
Input fragmentProgram) |
GlslProgram(Appearance app,
String prefix,
String[] vertexProgram,
String[] fragmentProgram) |
GlslProgram(Appearance app,
String prefix,
String vertexProgram,
String fragmentProgram) |
GlslProgram(EffectiveAppearance eap,
String prefix) |
Modifier and Type | Method and Description |
---|---|
GlslSource |
getSource() |
Object |
getUniform(String name) |
static boolean |
hasGlslProgram(Appearance eap,
String prefix) |
static boolean |
hasGlslProgram(EffectiveAppearance eap,
String prefix) |
void |
setUniform(String name,
boolean value) |
void |
setUniform(String name,
double value) |
void |
setUniform(String name,
double[] values) |
void |
setUniform(String name,
float value) |
void |
setUniform(String name,
float[] values) |
void |
setUniform(String name,
FloatBuffer data) |
void |
setUniform(String name,
int value) |
void |
setUniform(String name,
int[] values) |
void |
setUniformMatrix(String name,
double[] matrix) |
void |
setUniformMatrix(String name,
float[] matrix) |
public GlslProgram(Appearance app, String prefix, Input vertexProgram, Input fragmentProgram) throws IOException
IOException
public GlslProgram(Appearance app, String prefix, GlslSource s)
public GlslProgram(Appearance app, String prefix, String vertexProgram, String fragmentProgram)
public GlslProgram(Appearance app, String prefix, String[] vertexProgram, String[] fragmentProgram)
public GlslProgram(EffectiveAppearance eap, String prefix)
public GlslProgram(Appearance app, String prefix)
public GlslProgram(Appearance app, EffectiveAppearance eap, String prefix)
public static boolean hasGlslProgram(EffectiveAppearance eap, String prefix)
public static boolean hasGlslProgram(Appearance eap, String prefix)
public void setUniform(String name, boolean value)
public void setUniform(String name, float value)
public void setUniform(String name, int value)
public void setUniform(String name, float[] values)
public void setUniform(String name, int[] values)
public void setUniform(String name, double value)
public void setUniform(String name, double[] values)
public void setUniform(String name, FloatBuffer data)
public void setUniformMatrix(String name, float[] matrix)
public void setUniformMatrix(String name, double[] matrix)
public GlslSource getSource()