pub fn bind_texture(&self, attachment: gl::types::GLenum, texture: &Texture) {
        self.bind();
        unsafe {
            gl::FramebufferTexture2D(
                gl::FRAMEBUFFER,
                attachment,
                gl::TEXTURE_2D,
                texture.texture_id,
                0,
            );
        }
    }
/// Bind a texture as the target for this buffer.
Bind a texture as the target for this buffer.
Bind a texture as the target for this buffer .
pub fn bind_texture(&self, attachment: gl::types::GLenum, texture: &Texture) {
        self.bind();
        unsafe {
            gl::FramebufferTexture2D(
                gl::FRAMEBUFFER,
                attachment,
                gl::TEXTURE_2D,
                texture.texture_id,
                0,
            );
        }
    }
pub fn bind_texture ( & self , attachment : gl :: types :: GLenum , texture : & Texture ) { self . bind ( ) ; unsafe { gl :: FramebufferTexture2D ( gl :: FRAMEBUFFER , attachment , gl :: TEXTURE_2D , texture . texture_id , 0 , ) ; } }
Bind a texture as the target for this buffer.
Bind a texture as the target for this buffer .
&self
attachment
gl::types::GLenum
texture
&Texture
&self
attachment
gl::types::GLenum
texture
&Texture