///
/// Returns the major OpenGL version.
///
/// The default version is 2.0.
Returns the major OpenGL version.
The default version is 2.0.
Returns the major OpenGL version . The default version is 2 . 0 .
pub fn major_version(&self) -> i32 {
        let (obj_data, funcs) = self.get_surface_format_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).major_version)(obj_data);
            ret_val
        }
    }
pub fn major_version ( & self ) -> i32 { let ( obj_data , funcs ) = self . get_surface_format_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . major_version ) ( obj_data ) ; ret_val } }
Returns the major OpenGL version.
Returns the major OpenGL version .
&self