pub fn bind(&self, unit: u32) {
        unsafe {
            gl::ActiveTexture(gl::TEXTURE0 + unit);
            let target = if self.multisampled { gl::TEXTURE_2D_MULTISAMPLE } else { gl::TEXTURE_2D };
            gl::BindTexture(target, self.handle);
        }
    }
/// Binds this color attachment to the given texture unit. If this color attachment belongs to
/// a multisampled framebuffer the texture is bound to `GL_TEXTURE_2D_MULTISAMPLE`. Otherwise,
/// the texture is bound to `GL_TEXTURE_2D`.
Binds this color attachment to the given texture unit. If this color attachment belongs to
a multisampled framebuffer the texture is bound to `GL_TEXTURE_2D_MULTISAMPLE`. Otherwise,
the texture is bound to `GL_TEXTURE_2D`.
Binds this color attachment to the given texture unit . If this color attachment belongs to a multisampled framebuffer the texture is bound to ` GL_TEXTURE_2D_MULTISAMPLE ` . Otherwise the texture is bound to ` GL_TEXTURE_2D ` .
pub fn bind(&self, unit: u32) {
        unsafe {
            gl::ActiveTexture(gl::TEXTURE0 + unit);
            let target = if self.multisampled { gl::TEXTURE_2D_MULTISAMPLE } else { gl::TEXTURE_2D };
            gl::BindTexture(target, self.handle);
        }
    }
pub fn bind ( & self , unit : u32 ) { unsafe { gl :: ActiveTexture ( gl :: TEXTURE0 + unit ) ; let target = if self . multisampled { gl :: TEXTURE_2D_MULTISAMPLE } else { gl :: TEXTURE_2D } ; gl :: BindTexture ( target , self . handle ) ; } }
Binds this color attachment to the given texture unit.
Binds this color attachment to the given texture unit .
&self
unit
u32
&self
unit
u32