Trait glitter::context::texture_units::TextureUnit [] [src]

pub trait TextureUnit {
    fn idx(&self) -> u32;

    fn active(&mut self) -> TextureUnitBinding { ... }
}

A trait that represents a 'texture unit', which is a piece of OpenGL state that contains its own independent texture bindings.

Required Methods

Get the index of the texture unit.

Provided Methods

Make the current texture unit active, returning a binding.

Implementors