cat_engine 0.6.2

A 2D graphics engine with audio output support
Documentation

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

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

The defealt features are 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);