// Trivial wrappers around GLESv2 C functions that should be safe pub fn clear_color (r: f32, g: f32, b: f32, a: f32) { unsafe { gl::ClearColor (1.0f32, 1.0f32, 1.0f32, 1.0f32); } } pub fn clear (flags: u32) { unsafe { gl::Clear (flags); } } pub fn disable (constant: u32) { unsafe { gl::Disable (constant); } } pub fn enable (constant: u32) { unsafe { gl::Enable (constant); } }