Struct opengl_graphics::shader_uniforms::ShaderUniform
[−]
[src]
pub struct ShaderUniform<T: ?Sized> { /* fields omitted */ }
Describes a shader uniform of a given type.
Methods
impl ShaderUniform<SUFloat>
[src]
fn set(&self, gl: &GlGraphics, value: f32)
[src]
Set the value of the float uniform.
impl ShaderUniform<SUInt>
[src]
fn set(&self, gl: &GlGraphics, value: i32)
[src]
Set the value of the integer uniform.
impl ShaderUniform<SUVec2>
[src]
impl ShaderUniform<SUVec3>
[src]
impl ShaderUniform<SUVec4>
[src]
impl ShaderUniform<SUMat2x2>
[src]
impl ShaderUniform<SUMat3x3>
[src]
impl ShaderUniform<SUMat4x4>
[src]
Trait Implementations
impl<T: Clone + ?Sized> Clone for ShaderUniform<T>
[src]
fn clone(&self) -> ShaderUniform<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more