|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object codeanticode.glgraphics.GLSLShaderUniform codeanticode.glgraphics.GLModelEffectParameter
public class GLModelEffectParameter
This class stores the (uniform) parameter for a model effect.
Field Summary |
---|
Constructor Summary | |
---|---|
GLModelEffectParameter(processing.core.PApplet parent,
GLSLShader shader,
java.lang.String name,
java.lang.String label,
int type,
int len)
Creates an instance of GLModelEffectParameter using the specified parameters. |
|
GLModelEffectParameter(processing.core.PApplet parent,
java.lang.String name,
java.lang.String label,
int type,
int len)
Creates an instance of GLModelEffectParameter using the specified parameters. |
Method Summary | |
---|---|
int |
getArrayLength()
Returns array length. |
java.lang.String |
getLabel()
Returns parameter label. |
java.lang.String |
getName()
Returns parameter name. |
int |
getType()
Returns parameter type. |
static int |
getType(java.lang.String typeStr)
Returns the int constant that identifies a type, given the corresponding string. |
void |
setShader(GLShader shader)
Sets the shader this parameter corresponds to. |
void |
setValue(float value)
Sets the parameter value when the type is float. |
void |
setValue(float[] value)
Sets the parameter value for any type. |
void |
setValue(int value)
Sets the parameter value when the type is int. |
void |
setValue(int i,
float value)
Sets the ith value for the parameter (only valid for vec or mat types). |
void |
setValue(int i,
int j,
float value)
Sets the (ith, jth) value for the parameter (only valid for mat types). |
Methods inherited from class codeanticode.glgraphics.GLSLShaderUniform |
---|
available, copyToShader, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLModelEffectParameter(processing.core.PApplet parent, java.lang.String name, java.lang.String label, int type, int len)
parent
- PAppletname
- Stringlabel
- Stringtype
- intlen
- intpublic GLModelEffectParameter(processing.core.PApplet parent, GLSLShader shader, java.lang.String name, java.lang.String label, int type, int len)
parent
- PAppletshader
- GLSLShadername
- Stringlabel
- Stringtype
- intlen
- intMethod Detail |
---|
public void setShader(GLShader shader)
shader
- GLShaderpublic void setValue(int value)
value
- intpublic void setValue(float value)
value
- floatpublic void setValue(float[] value)
value
- float[]public void setValue(int i, float value)
int
- ivalue
- floatpublic void setValue(int i, int j, float value)
int
- iint
- jvalue
- floatpublic static int getType(java.lang.String typeStr)
String
- typeStr
public int getType()
public java.lang.String getName()
public java.lang.String getLabel()
public int getArrayLength()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |