1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
//! # 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::{
//! DefaultWindow,
//! Window,
//! WindowEvent
//! };
//!
//! fn main(){
//! // Default settings
//! let mut window=Window::new(|_,_|{}).unwrap();
//!
//! while let Some(event)=window.next_event(){
//! match event{
//! WindowEvent::Exit=>break,
//! WindowEvent::Draw=>{
//! 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);
//! ```
// re-exports
pub use ;
// re-exports
pub use image;
pub use *;
// Caution \\
// Under construction \\
/// Геометрические фигуры. Geometric shapes.
/// `feature = "simple_graphics"`, `default_features`
// _.---.._ _.---...__
// .-' /\ \ .' /\ /
// `. ( ) \ / ( ) /
// `. \/ .'\ /`. \/ .'
// ``---'' ) ( ``---''
// .';.--.;`.
// .' /_...._\ `.
// .' `.a a.' `.
// ( \/ )
// `.___..-'`-..___.'
// \ /
// `-.____.-'
// Henlo, Mister Programmer.
// If you think there are to many cats, you are mistaken.
// There can't be too many cats.
// Cats are cute.
// I'd better write a good documentation rather than paste cats.
// But......................... Cats are more important!
/// RGBA - [f32; 4]
pub type Colour=;
/// Возвращает прямоугольник размера окна.
/// Returns a window sized rectangle.
/// [0, 0, width, height]