pub fn generate_mipmaps(&mut self) {
        unsafe {
            gl::BindTexture(self.texture_target, self.texture.texture_id);
            gl::GenerateMipmap(self.texture_target);

            panic_on_gl_error("Generate texture mip map");
        }
    }
///
/// Generates mip-maps for this texture
///
Generates mip-maps for this texture
Generates mip - maps for this texture
pub fn generate_mipmaps(&mut self) {
        unsafe {
            gl::BindTexture(self.texture_target, self.texture.texture_id);
            gl::GenerateMipmap(self.texture_target);
            panic_on_gl_error("Generate texture mip map");
        }
    }
pub fn generate_mipmaps ( & mut self ) { unsafe { gl :: BindTexture ( self . texture_target , self . texture . texture_id ) ; gl :: GenerateMipmap ( self . texture_target ) ; panic_on_gl_error ( " " ) ; } }
Generates mip-maps for this texture
Generates mip - maps for this texture
&mut self