pub fn bind(&self, unit: u32) {
        unsafe {
            gl::ActiveTexture(gl::TEXTURE0 + unit);
            gl::BindTexture(gl::TEXTURE_2D, self.texture);
        }
    }
/// Binds this texture to the given texture unit.
Binds this texture to the given texture unit.
Binds this texture to the given texture unit .
pub fn bind(&self, unit: u32) {
        unsafe {
            gl::ActiveTexture(gl::TEXTURE0 + unit);
            gl::BindTexture(gl::TEXTURE_2D, self.texture);
        }
    }
pub fn bind ( & self , unit : u32 ) { unsafe { gl :: ActiveTexture ( gl :: TEXTURE0 + unit ) ; gl :: BindTexture ( gl :: TEXTURE_2D , self . texture ) ; } }
Binds this texture to the given texture unit.
Binds this texture to the given texture unit .
&self
unit
u32
&self
unit
u32