PrOGL
processing open-gl interface
|
organizes information for a single Uniform, including its underlying data type and update behavior. More...
Package Functions | |
Uniform (String name, T val, uniform_type type) | |
constant Uniform constructor. | |
Uniform (String name, T val, uniform_type type, Function< T, T > update_function) | |
updatable Uniform constructor. | |
void | update () |
update a uniforms value if applicable, ie. | |
void | set_uniform (PShader program) |
set this uniform within a given program. | |
void | print () |
print out data structure for debugging. | |
Package Attributes | |
String | name |
name used to reference uniform | |
T | val |
data value | |
uniform_type | type |
data type of the val member | |
Function< T, T > | update_function = t -> t |
a pass by value update function | |
boolean | update_flag |
wether to update or not | |
organizes information for a single Uniform, including its underlying data type and update behavior.
Definition at line 27 of file Uniform.pde.
|
package |
constant Uniform constructor.
this constructor will initialize the uniform and set update_flag to false.
name | the Uniform name as referenced in the glsl shader code |
val | the value to initialize the Uniform with |
type | the data type of val |
Definition at line 43 of file Uniform.pde.
References Uniform< T >.name, Uniform< T >.type, and Uniform< T >.val.
|
package |
updatable Uniform constructor.
this constructor will initialize the uniform with an update_function, setting update_flag to true.
name | the Uniform name as referenced in the glsl shader code |
val | the value to initialize the Uniform with |
type | the data type of val |
update_function | a lambda function, taking, updating, and returning the data type of this Uniform. |
Definition at line 61 of file Uniform.pde.
References Uniform< T >.name, Uniform< T >.type, Uniform< T >.update_function, and Uniform< T >.val.
|
package |
print out data structure for debugging.
Definition at line 132 of file Uniform.pde.
References Uniform< T >.name, Uniform< T >.type, Uniform< T >.update_flag, Uniform< T >.update_function, and Uniform< T >.val.
|
package |
set this uniform within a given program.
Definition at line 83 of file Uniform.pde.
References Texture.img, Uniform< T >.name, Uniform< T >.type, and Uniform< T >.val.
|
package |
update a uniforms value if applicable, ie.
update_flag = true
.
Definition at line 72 of file Uniform.pde.
References Uniform< T >.update_flag, Uniform< T >.update_function, and Uniform< T >.val.
|
package |
name used to reference uniform
Definition at line 29 of file Uniform.pde.
|
package |
data type of the val member
Definition at line 31 of file Uniform.pde.
|
package |
wether to update or not
Definition at line 33 of file Uniform.pde.
|
package |
a pass by value update function
Definition at line 32 of file Uniform.pde.
|
package |
data value
Definition at line 30 of file Uniform.pde.