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::{
PagedWindow,
Window,
WindowEvent
};
fn main(){
// Default settings
let mut window=PagedWindow::new(|_,_|{}).unwrap();
window.run(|window,event|{
match event{
WindowEvent::RedrawRequested=>{
window.draw(|_,g|{
g.clear_colour([1.0,0.0,0.0,0.0]);
}).unwrap();
}
_=>{}
}
});
}
Modifying the window.
let wi=window.display().gl_window();
let w=wi.window();
w.set_minimized(false);
w.set_visible(false);