Struct gl_helpers::GLUniform
[−]
[src]
pub struct GLUniform { /* fields omitted */ }
Methods
impl GLUniform
[src]
fn new(kind: UniformKind, count: usize, location: usize) -> Self
[src]
fn kind(&self) -> &UniformKind
[src]
fn count(&self) -> usize
[src]
fn location(&self) -> usize
[src]
impl GLUniform
[src]
fn set_1f(&self, value: f32)
[src]
fn set_1i(&self, value: i32)
[src]
fn set_2f(&self, value: &[f32; 2])
[src]
fn set_2i(&self, value: &[i32; 2])
[src]
fn set_3f(&self, value: &[f32; 3])
[src]
fn set_3i(&self, value: &[i32; 3])
[src]
fn set_4f(&self, value: &[f32; 4])
[src]
fn set_4i(&self, value: &[i32; 4])
[src]
fn set_mat2f(&self, value: &[f32; 4])
[src]
fn set_mat3f(&self, value: &[f32; 9])
[src]
fn set_mat4f(&self, value: &[f32; 16])
[src]
impl GLUniform
[src]
fn set_2fv(&self, values: &[f32])
[src]
fn set_2iv(&self, values: &[i32])
[src]
fn set_3fv(&self, values: &[f32])
[src]
fn set_3iv(&self, values: &[i32])
[src]
fn set_4fv(&self, values: &[f32])
[src]
fn set_4iv(&self, values: &[i32])
[src]
fn set_mat2fv(&self, values: &[f32])
[src]
fn set_mat3fv(&self, values: &[f32])
[src]
fn set_mat4fv(&self, values: &[f32])
[src]
fn set_sampler_2d(&self, texture: &GLTexture, index: usize)
[src]
Trait Implementations
impl Debug for GLUniform
[src]
impl Clone for GLUniform
[src]
fn clone(&self) -> GLUniform
[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