Struct glium::uniforms::UniformsStorage
[−]
[src]
pub struct UniformsStorage<'n, T, R> where T: AsUniformValue, R: Uniforms {
// some fields omitted
}
Stores uniforms.
Methods
impl<'n, T> UniformsStorage<'n, T, EmptyUniforms> where T: AsUniformValue
[src]
fn new(name: &'n str, value: T) -> UniformsStorage<'n, T, EmptyUniforms>
Builds a new storage with a value.
impl<'n, T, R> UniformsStorage<'n, T, R> where T: AsUniformValue, R: Uniforms
[src]
fn add<U>(self, name: &'n str, value: U) -> UniformsStorage<'n, U, UniformsStorage<'n, T, R>> where U: AsUniformValue
Adds a value to the storage.
Trait Implementations
impl<'n, T, R> Uniforms for UniformsStorage<'n, T, R> where T: AsUniformValue, R: Uniforms
[src]
fn visit_values<'a, F: FnMut(&str, UniformValue<'a>)>(&'a self, output: F)
Calls the parameter once with the name and value of each uniform.