Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## codeanticode.glgraphics
Class ShaderManager

    java.lang.Object
      codeanticode.glgraphics.ShaderManager

    public class ShaderManager

extends java.lang.Object

Constructor Summary
`ShaderManager(GL gl)`

Method Summary
`int` | `addEffect(ShaderCGFX shd)`
`int` | `addEffect(java.lang.String name, java.lang.String file)`
`int` | `addShader(Shader shd)`
`int` | `addShader(java.lang.String name, java.lang.String vfile, java.lang.String ffile)`
`int` | `addShader(java.lang.String name, java.lang.String vfile, java.lang.String ffile, java.lang.String gfile)`
`void` | `disable()`
`void` | `enable(int idx)`
`ShaderCGFX` | `getActiveEffect()`
`Shader` | `getActiveShader()`
`int` | `getNumShaders()`
`void` | `release()`
`void` | `setMatrixParameterSemantic(java.lang.String param, float[] v)`
`void` | `setMatrixParameterSemantic(java.lang.String param, int matrix, int matrixType)`
`void` | `setParameter1f(java.lang.String param, float x)`
`void` | `setParameter2f(java.lang.String param, float x, float y)`
`void` | `setParameter3f(java.lang.String param, float x, float y, float z)`
`void` | `setParameter4f(java.lang.String param, float x, float y, float z, float w)`
`void` | `setParameter4x4f(java.lang.String param, float[] v)`
`void` | `setParameter4x4f(java.lang.String param, int matrix, int matrixType)`
`void` | `setParameter4x4fBySemantic(java.lang.String param, int matrix, int matrixType)`
`void` | `setParameterSemantic(java.lang.String param, float x)`
`void` | `setParameterSemantic(java.lang.String param, float x, float y)`
`void` | `setParameterSemantic(java.lang.String param, float x, float y, float z)`
`void` | `setParameterSemantic(java.lang.String param, float x, float y, float z, float w)`
`void` | `setTextureParameter(java.lang.String param, int x)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ShaderManager

    public ShaderManager(GL gl)

Method Detail

### enable

    public void enable(int idx)

### disable

    public void disable()

### getActiveShader

    public Shader getActiveShader()

### getActiveEffect

    public ShaderCGFX getActiveEffect()

### addShader

    public int addShader(java.lang.String name,
                         java.lang.String vfile,
                         java.lang.String ffile)

### addShader

    public int addShader(java.lang.String name,
                         java.lang.String vfile,
                         java.lang.String ffile,
                         java.lang.String gfile)

### addShader

    public int addShader(Shader shd)

### addEffect

    public int addEffect(java.lang.String name,
                         java.lang.String file)

### addEffect

    public int addEffect(ShaderCGFX shd)

### setTextureParameter

    public void setTextureParameter(java.lang.String param,
                                    int x)

### setParameter1f

    public void setParameter1f(java.lang.String param,
                               float x)

### setParameter2f

    public void setParameter2f(java.lang.String param,
                               float x,
                               float y)

### setParameter3f

    public void setParameter3f(java.lang.String param,
                               float x,
                               float y,
                               float z)

### setParameter4f

    public void setParameter4f(java.lang.String param,
                               float x,
                               float y,
                               float z,
                               float w)

### setParameterSemantic

    public void setParameterSemantic(java.lang.String param,
                                     float x)

### setParameterSemantic

    public void setParameterSemantic(java.lang.String param,
                                     float x,
                                     float y)

### setParameterSemantic

    public void setParameterSemantic(java.lang.String param,
                                     float x,
                                     float y,
                                     float z)

### setParameterSemantic

    public void setParameterSemantic(java.lang.String param,
                                     float x,
                                     float y,
                                     float z,
                                     float w)

### setMatrixParameterSemantic

    public void setMatrixParameterSemantic(java.lang.String param,
                                           int matrix,
                                           int matrixType)

### setMatrixParameterSemantic

    public void setMatrixParameterSemantic(java.lang.String param,
                                           float[] v)

### setParameter4x4fBySemantic

    public void setParameter4x4fBySemantic(java.lang.String param,
                                           int matrix,
                                           int matrixType)

### setParameter4x4f

    public void setParameter4x4f(java.lang.String param,
                                 int matrix,
                                 int matrixType)

### setParameter4x4f

    public void setParameter4x4f(java.lang.String param,
                                 float[] v)

### getNumShaders

    public int getNumShaders()

### release

    public void release()

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

processing library glgraphics by Andres Colubri. (c) 2008