|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcodeanticode.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 GLTextureFilterParameterpublic boolean available()
available in class GLTextureFilterParameterpublic void init()
init in class GLTextureFilterParameterpublic void setValue(int value)
setValue in class GLTextureFilterParametervalue - intpublic void setValue(float value)
setValue in class GLTextureFilterParametervalue - floatpublic void setValue(float[] value)
setValue in class GLTextureFilterParametervalue - float[]
public void setValue(int i,
float value)
setValue in class GLTextureFilterParameterint - ivalue - float
public void setValue(int i,
int j,
float value)
GLTextureFilterParameter
setValue in class GLTextureFilterParametervalue - floatpublic void copyToShader()
copyToShader in class GLTextureFilterParameterpublic java.lang.String getName()
getName in class GLTextureFilterParameterpublic java.lang.String getLabel()
getLabel in class GLTextureFilterParameterpublic int getArrayLength()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||