### codeanticode.glgraphics

# Class GLSLShaderUniform

- `GLSLShaderVariable`
- - `codeanticode.glgraphics.GLSLShaderUniform`

`public class GLSLShaderUniform`
`extends GLSLShaderVariable`

This class stores the uniform variable of a GLSL shader.

  ## Constructor Summary
  `GLSLShaderUniform(PApplet parent, GLSLShader shader, String name, String label, int type)` Creates an instance of GLSLShaderUniform using the specified parameters.
  `GLSLShaderUniform(PApplet parent, String name, String label, int type)` Creates an instance of GLSLShaderUniform using the specified parameters.

  ## Method Summary
  `void` | `genID()`
  `void` | `setParameter()` Copies the parameter value to the GPU.

## Constructor Details

### GLSLShaderUniform

    public GLSLShaderUniform(PApplet parent,
                             GLSLShader shader,
                             String name,
                             String label,
                             int type)

> Creates an instance of GLSLShaderUniform using the specified parameters.
> Parameters:
>   `parent` - PApplet
>   `shader` - GLSLShader
>   `name` - String
>   `label` - String
>   `type` - int

### GLSLShaderUniform

    public GLSLShaderUniform(PApplet parent,
                             String name,
                             String label,
                             int type)

> Creates an instance of GLSLShaderUniform using the specified parameters. The shader is set to null.
> Parameters:
>   `parent` - PApplet
>   `name` - String
>   `label` - String
>   `type` - int

## Method Details

### genID

    public void genID()

### setParameter

    public void setParameter()

> Copies the parameter value to the GPU.

processing library glgraphics by Andres Colubri. (c) 2008