struct Gloop::Uniforms
- Gloop::Uniforms
- Struct
- Value
- Object
Overview
Access to uniforms from the program currently in use.
NOTE If the active program is changed, existing references to uniforms will change to the new program, which may not exist.
Included Modules
Defined in:
gloop/uniforms.crConstructors
-
.new(context : Gloop::Context)
Creates a resource associated with a context.
Instance Method Summary
-
#[](location : Int32) : UniformLocation
References a uniform in the current program by its location.
Constructor Detail
Instance Method Detail
def [](location : Int32) : UniformLocation
#
References a uniform in the current program by its location.