Trait glitter::uniform_data::UniformData [] [src]

pub trait UniformData {
    fn uniform_datum_type() -> UniformDatumType;
fn uniform_bytes(&self) -> &[u8];
fn uniform_elements(&self) -> usize; }

A type that can be set to a uniform value in a program object, using the gl.set_uniform method. A UniformData type can be composed of one or more UniformDatums, and this is likely the type that user types will implement.

Required Methods

Return the type that this uniform data should be treated as.

Create a byte slice of uniform data from self.

Return the number of uniform data elements that self contains.

Implementations on Foreign Types

impl<T: UniformDatum> UniformData for [T]
[src]

Implementors