pub fn draw_bg(window: &mut glfw::Window, bg_color: (u8, u8, u8)) {
    unsafe {
        let r = bg_color.0 as f32 / u8::MAX as f32;
        let g = bg_color.1 as f32 / u8::MAX as f32;
        let b = bg_color.2 as f32 / u8::MAX as f32;
        gl::ClearColor(r, g, b, 1.0);
        gl::Clear(gl::COLOR_BUFFER_BIT);
        window.swap_buffers();
    }
}
/// Draw blank background before flutter engine starts.
Draw blank background before flutter engine starts.
Draw blank background before flutter engine starts .
pub fn draw_bg(window: &mut glfw::Window, bg_color: (u8, u8, u8)) {
    unsafe {
        let r = bg_color.0 as f32 / u8::MAX as f32;
        let g = bg_color.1 as f32 / u8::MAX as f32;
        let b = bg_color.2 as f32 / u8::MAX as f32;
        gl::ClearColor(r, g, b, 1.0);
        gl::Clear(gl::COLOR_BUFFER_BIT);
        window.swap_buffers();
    }
}
pub fn draw_bg ( window : & mut glfw :: Window , bg_color : ( u8 , u8 , u8 ) ) { unsafe { let r = bg_color . 0 as f32 / u8 :: MAX as f32 ; let g = bg_color . 1 as f32 / u8 :: MAX as f32 ; let b = bg_color . 2 as f32 / u8 :: MAX as f32 ; gl :: ClearColor ( r , g , b , 1.0 ) ; gl :: Clear ( gl :: COLOR_BUFFER_BIT ) ; window . swap_buffers ( ) ; } }
Draw blank background before flutter engine starts.
Draw blank background before flutter engine starts .
window
&mut glfw::Window
bg_color
(u8, u8, u8)
window
&mut glfw::Window
bg_color
(u8, u8, u8)