cat_engine 0.6.5

A 2D graphics engine with audio output support
Documentation

2D графический движок с поддержкой аудио. A 2D graphics engine with audio support.

"Фичи" по умолчанию - audio, simple_graphics, texture_graphics, text_graphics.

The default features are audio,simple_graphics, texture_graphics, text_graphics.

use cat_engine::{
    Window,
    WindowEvent
};

fn main(){
    // Default settings
    let (mut window,graphics)=Window::new(|_,_|{}).unwrap();

    window.run(|window,event|{
        match event{
            WindowEvent::RedrawRequested=>{
                window.draw(&graphics,|graphics|{
                    graphics.clear_colour([1.0,0.0,0.0,0.0]);
                }).unwrap();
            }
            _=>{}
        }
    });
}

Modifying a window.

let wi=window.display().gl_window();
let w=wi.window();
w.set_minimized(false);
w.set_visible(false);