Struct nannou::ui::backend::glium::glium::uniforms::UniformsStorage [−][src]
pub struct UniformsStorage<'n, T, R> where
R: Uniforms,
T: AsUniformValue, { /* fields omitted */ }
Stores uniforms.
Methods
impl<'n, T> UniformsStorage<'n, T, EmptyUniforms> where
T: AsUniformValue,
[src]
impl<'n, T> UniformsStorage<'n, T, EmptyUniforms> where
T: AsUniformValue,
pub fn new(name: &'n str, value: T) -> UniformsStorage<'n, T, EmptyUniforms>
[src]
pub 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
R: Uniforms,
T: AsUniformValue,
[src]
impl<'n, T, R> UniformsStorage<'n, T, R> where
R: Uniforms,
T: AsUniformValue,
pub fn add<U>(
self,
name: &'n str,
value: U
) -> UniformsStorage<'n, U, UniformsStorage<'n, T, R>> where
U: AsUniformValue,
[src]
pub 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
R: Uniforms,
T: AsUniformValue,
[src]
impl<'n, T, R> Uniforms for UniformsStorage<'n, T, R> where
R: Uniforms,
T: AsUniformValue,
fn visit_values<'a, F>(&'a self, output: F) where
F: FnMut(&str, UniformValue<'a>),
[src]
fn visit_values<'a, F>(&'a self, output: F) where
F: FnMut(&str, UniformValue<'a>),
Calls the parameter once with the name and value of each uniform.
Auto Trait Implementations
impl<'n, T, R> Send for UniformsStorage<'n, T, R> where
R: Send,
T: Send,
impl<'n, T, R> Send for UniformsStorage<'n, T, R> where
R: Send,
T: Send,
impl<'n, T, R> Sync for UniformsStorage<'n, T, R> where
R: Sync,
T: Sync,
impl<'n, T, R> Sync for UniformsStorage<'n, T, R> where
R: Sync,
T: Sync,