Raised when an error occurs while creating or when drawing using a uniform.
Module OgamlGraphics.Uniform
Encapsulates a group of uniforms for renderingThis module encapsulates a set of uniforms that can be passed to GLSL programs.
Type of a set of uniforms
Empty set of uniforms
vector3f name vec set
adds the uniform vec
to set
. the uniform should be refered to as name
in a glsl program. Raises Invalid_uniform
if name
is already bound in set
. Type : vec3.See : OgamlMath.Vector3f
See vector3f. Type : vec2.
See : OgamlMath.Vector2f
See : OgamlMath.Vector2f
See vector3f. Type : vec3i.
See : OgamlMath.Vector3i
See : OgamlMath.Vector3i
See vector3f. Type : vec2i.
See : OgamlMath.Vector2i
See : OgamlMath.Vector2i
See vector3f. Type : int.
See vector3f. Type : float.
See vector3f. Type : mat3.
See : OgamlMath.Matrix3D
See : OgamlMath.Matrix3D
See vector3f. Type : mat2.
See : OgamlMath.Matrix2D
See : OgamlMath.Matrix2D
See vector3f. Type : vec4.
See : OgamlGraphics.Color
See : OgamlGraphics.Color
See vector3f. Type : sampler2D.
The optional parameter
See
See : OgamlGraphics.Texture.Texture2D
See : OgamlGraphics.Context
The optional parameter
tex_unit
corresponds to the texture unit that is used to bind this texture. If not provided, it defaults to the next available unit. If no additional units are available, or if a unit is explicitly bound twice, drawing with the uniform will raise Invalid_uniform
.See
Context.capabilities
for the number of available units.See : OgamlGraphics.Texture.Texture2D
See : OgamlGraphics.Context