|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object codeanticode.glgraphics.GLTextureFilterParameter codeanticode.glgraphics.GLSLTextureFilterParameter
public class GLSLTextureFilterParameter
This class stores the uniform parameter for a texture filter.
Constructor Summary | |
---|---|
GLSLTextureFilterParameter(processing.core.PApplet parent,
GLShader shader,
java.lang.String name,
java.lang.String label,
int type,
int len)
|
|
GLSLTextureFilterParameter(processing.core.PApplet parent,
java.lang.String name,
java.lang.String label,
int type,
int len)
|
Method Summary | |
---|---|
boolean |
available()
Returns true or false depending on whether this variable is available for use. |
void |
copyToShader()
Copies variable values to shader. |
int |
getArrayLength()
Returns array length of parameter. |
java.lang.String |
getLabel()
Returns parameter label. |
java.lang.String |
getName()
Returns parameter name. |
void |
init()
Initializes this parameter.. |
void |
setShader(GLShader shader)
|
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLSLTextureFilterParameter(processing.core.PApplet parent, java.lang.String name, java.lang.String label, int type, int len)
public GLSLTextureFilterParameter(processing.core.PApplet parent, GLShader shader, java.lang.String name, java.lang.String label, int type, int len)
Method Detail |
---|
public void setShader(GLShader shader)
setShader
in class GLTextureFilterParameter
public boolean available()
available
in class GLTextureFilterParameter
public void init()
init
in class GLTextureFilterParameter
public void setValue(int value)
setValue
in class GLTextureFilterParameter
value
- intpublic void setValue(float value)
setValue
in class GLTextureFilterParameter
value
- floatpublic void setValue(float[] value)
setValue
in class GLTextureFilterParameter
value
- float[]public void setValue(int i, float value)
setValue
in class GLTextureFilterParameter
int
- ivalue
- floatpublic void setValue(int i, int j, float value)
GLTextureFilterParameter
setValue
in class GLTextureFilterParameter
value
- floatpublic void copyToShader()
copyToShader
in class GLTextureFilterParameter
public java.lang.String getName()
getName
in class GLTextureFilterParameter
public java.lang.String getLabel()
getLabel
in class GLTextureFilterParameter
public int getArrayLength()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |