[][src]Struct opengl_graphics::shader_uniforms::ShaderUniform

pub struct ShaderUniform<T: ?Sized> { /* fields omitted */ }

Describes a shader uniform of a given type.

Implementations

impl ShaderUniform<SUFloat>[src]

pub fn set(&self, gl: &GlGraphics, value: f32)[src]

Set the value of the float uniform.

impl ShaderUniform<SUInt>[src]

pub fn set(&self, gl: &GlGraphics, value: i32)[src]

Set the value of the integer uniform.

impl ShaderUniform<SUVec2>[src]

pub fn set(&self, gl: &GlGraphics, value: &[f32; 2])[src]

Set the value of the vector 2 uniform.

impl ShaderUniform<SUVec3>[src]

pub fn set(&self, gl: &GlGraphics, value: &[f32; 3])[src]

Set the value of the vector 3 uniform.

impl ShaderUniform<SUVec4>[src]

pub fn set(&self, gl: &GlGraphics, value: &[f32; 4])[src]

Set the value of the vector 4 uniform.

impl ShaderUniform<SUMat2x2>[src]

pub fn set(&self, gl: &GlGraphics, values: &[f32; 4])[src]

Set the value of the 2x2 matrix uniform.

impl ShaderUniform<SUMat3x3>[src]

pub fn set(&self, gl: &GlGraphics, values: &[f32; 9])[src]

Set the value of the 3x3 matrix uniform.

impl ShaderUniform<SUMat4x4>[src]

pub fn set(&self, gl: &GlGraphics, values: &[f32; 16])[src]

Set the value of the 4x4 matrix uniform.

Trait Implementations

impl<T: Clone + ?Sized> Clone for ShaderUniform<T>[src]

impl<T: Copy + ?Sized> Copy for ShaderUniform<T>[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for ShaderUniform<T> where
    T: RefUnwindSafe
[src]

impl<T: ?Sized> Send for ShaderUniform<T> where
    T: Send
[src]

impl<T: ?Sized> Sync for ShaderUniform<T> where
    T: Sync
[src]

impl<T: ?Sized> Unpin for ShaderUniform<T> where
    T: Unpin
[src]

impl<T: ?Sized> UnwindSafe for ShaderUniform<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.