|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcodeanticode.gltexture.GLTextureFilterParams
public class GLTextureFilterParams
This class stores the parameters for a filter. There are 6 predefined parameters: three float numbers and three matrices (2x2, 3x3 and 4x4). This parameters should correspond to uniform parameters defined in the shader code.
| Field Summary | |
|---|---|
float |
parFlt1
Float parameter 1. |
float |
parFlt2
Float parameter 2. |
float |
parFlt3
Float parameter 3. |
float[] |
parMat2
2x2 matrix parameter. |
float[] |
parMat3
3x3 matrix parameter. |
float[] |
parMat4
4x matrix parameter. |
| Constructor Summary | |
|---|---|
GLTextureFilterParams()
Creates an instance of GLTextureFilterParams, setting all the parameters to zero. |
|
| Method Summary | |
|---|---|
float |
getMat2(int i,
int j)
Returns the (i, j) element of the 2x2 matrix parameter. |
float |
getMat3(int i,
int j)
Returns the (i, j) element of the 3x3 matrix parameter. |
float |
getMat4(int i,
int j)
Returns the (i, j) element of the 4x4 matrix parameter. |
void |
setMat2(int i,
int j,
float v)
Sets the (i, j) element of the 2x2 matrix parameter to v. |
void |
setMat3(int i,
int j,
float v)
Sets the (i, j) element of the 3x3 matrix parameter to v. |
void |
setMat4(int i,
int j,
float v)
Sets the (i, j) element of the 4x4 matrix parameter to v. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float parFlt1
public float parFlt2
public float parFlt3
public float[] parMat2
public float[] parMat3
public float[] parMat4
| Constructor Detail |
|---|
public GLTextureFilterParams()
| Method Detail |
|---|
public void setMat2(int i,
int j,
float v)
i - intj - intv - float
public float getMat2(int i,
int j)
i - intj - int
public void setMat3(int i,
int j,
float v)
i - intj - intv - float
public float getMat3(int i,
int j)
i - intj - int
public void setMat4(int i,
int j,
float v)
i - intj - intv - float
public float getMat4(int i,
int j)
i - intj - int
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||