codeanticode.gltexture
Class GLTextureFilterParams

java.lang.Object
  extended by codeanticode.gltexture.GLTextureFilterParams

public class GLTextureFilterParams
extends java.lang.Object

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

parFlt1

public float parFlt1
Float parameter 1.


parFlt2

public float parFlt2
Float parameter 2.


parFlt3

public float parFlt3
Float parameter 3.


parMat2

public float[] parMat2
2x2 matrix parameter.


parMat3

public float[] parMat3
3x3 matrix parameter.


parMat4

public float[] parMat4
4x matrix parameter.

Constructor Detail

GLTextureFilterParams

public GLTextureFilterParams()
Creates an instance of GLTextureFilterParams, setting all the parameters to zero.

Method Detail

setMat2

public void setMat2(int i,
                    int j,
                    float v)
Sets the (i, j) element of the 2x2 matrix parameter to v.

Parameters:
i - int
j - int
v - float

getMat2

public float getMat2(int i,
                     int j)
Returns the (i, j) element of the 2x2 matrix parameter.

Parameters:
i - int
j - int

setMat3

public void setMat3(int i,
                    int j,
                    float v)
Sets the (i, j) element of the 3x3 matrix parameter to v.

Parameters:
i - int
j - int
v - float

getMat3

public float getMat3(int i,
                     int j)
Returns the (i, j) element of the 3x3 matrix parameter.

Parameters:
i - int
j - int

setMat4

public void setMat4(int i,
                    int j,
                    float v)
Sets the (i, j) element of the 4x4 matrix parameter to v.

Parameters:
i - int
j - int
v - float

getMat4

public float getMat4(int i,
                     int j)
Returns the (i, j) element of the 4x4 matrix parameter.

Parameters:
i - int
j - int