Struct glitter::context::texture_units::TextureUnitsOf [] [src]

pub struct TextureUnitsOf<T0, T1, T2, T3, T4, T5, T6, T7>(pub T0, pub T1, pub T2, pub T3, pub T4, pub T5, pub T6, pub T7);

This type holds all of the OpenGL texture units. Each type parameter is the current type of a texture unit. See the ContextOf docs for more details.

Methods

impl<T0, T1, T2, T3, T4, T5, T6, T7> TextureUnitsOf<T0, T1, T2, T3, T4, T5, T6, T7>
[src]

[src]

Get the current texture units.

Safety

The same rules apply to this method as the ContextOf::current_context() method.

[src]

Replace the 0th texture unit context with a new value, returning the old value and a new set of texture units

[src]

Replace the 1st texture unit context with a new value, returning the old value and a new set of texture units

[src]

Replace the 2nd texture unit context with a new value, returning the old value and a new set of texture units

[src]

Replace the 3rd texture unit context with a new value, returning the old value and a new set of texture units

[src]

Replace the 4th texture unit context with a new value, returning the old value and a new set of texture units

[src]

Replace the 5th texture unit context with a new value, returning the old value and a new set of texture units

[src]

Replace the 6th texture unit context with a new value, returning the old value and a new set of texture units

[src]

Replace the 7th texture unit context with a new value, returning the old value and a new set of texture units

[src]

Make the idxth texture unit the active one, returning a new binding.

Safety

For convenience, this function takes self by shared reference, not mutable reference. Thus, this function can be to create multiple live bindings. Special care must be taken to ensure that two bindings do not conflict; since there can only ever be one active texture unit in OpenGL, using this function may result in unexpected or undefined behavior, and it should only be used as a fallback when glitter's safe texture unit interface is not sufficient.