Struct glitter::context::texture_context::Texture2dBinder
[−]
[src]
pub struct Texture2dBinder { /* fields omitted */ }
The OpenGL texture unit state that represents the GL_TEXTURE_2D
target.
Methods
impl Texture2dBinder
[src]
pub unsafe fn current() -> Self
[src]
Get the current GL_TEXTURE_2D
binder.
Safety
The same rules apply to this method as the
ContextOf::current_context()
method.
pub fn bind<'a>(&mut self, texture: &mut Texture2d) -> Texture2dBinding<'a>
[src]
Bind a texture to the GL_TEXTURE_2D
target,
returning a binding.