pub fn new() -> Texture {
        unsafe {
            let mut new_texture = 0;
            gl::GenTextures(1, &mut new_texture);

            Texture {
                texture:        Rc::new(TextureRef { texture_id: new_texture }),
                texture_target: gl::TEXTURE_2D,
                texture_format: gl::RGBA,
                num_samples:    0,
                width:          0,
                height:         0
            }
        }
    }
///
/// Creates a new OpenGL texture object
///
Creates a new OpenGL texture object
Creates a new OpenGL texture object
pub fn new() -> Texture {
        unsafe {
            let mut new_texture = 0;
            gl::GenTextures(1, &mut new_texture);
            Texture {
                texture:        Rc::new(TextureRef { texture_id: new_texture }),
                texture_target: gl::TEXTURE_2D,
                texture_format: gl::RGBA,
                num_samples:    0,
                width:          0,
                height:         0
            }
        }
    }
pub fn new ( ) -> Texture { unsafe { let mut new_texture = 0 ; gl :: GenTextures ( 1 , & mut new_texture ) ; Texture { texture : Rc :: new ( TextureRef { texture_id : new_texture } ) , texture_target : gl :: TEXTURE_2D , texture_format : gl :: RGBA , num_samples : 0 , width : 0 , height : 0 } } }
Creates a new OpenGL texture object
Creates a new OpenGL texture object