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

pub trait TextureUnitBinding2d: ATextureUnitBinding {
    type Binder: BorrowMut<Texture2dBinder>;
    type Rest: ATextureUnitBinding;
    fn split_texture_2d(self) -> (Self::Binder, Self::Rest);

    fn bind_texture_2d<'a>(
        self,
        tex: &'a mut Texture2d
    ) -> (Texture2dBinding<'a>, Self::Rest)
    where
        Self: Sized
, { ... } }

A texture unit binding that has a free GL_TEXTURE_2D binding.

Associated Types

The type of binder this texture unit contains.

The texture unit that will be returned after binding the texture.

Required Methods

Split the texture unit into a binder and the remaining texture unit.

Provided Methods

Bind a 2D texture to this texture unit, returning a binding and the remaining texture unit.

Implementors