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
#![allow(non_upper_case_globals,unused_must_use)]

/*!
 * # 2D графический движок с поддержкой аудио. 2D graphics engine with audio support.
 * Использует OpenGL 2.0 и выше.
 * 
 * Uses OpenGL 2.0 and above.
 * 
*/

pub use glium; // reimports

// text::{
//      Glyphs,
//      Character,
//      TextBase
// }
/// Основы работы с текстом. Text basics. `feature = "text_graphics"`, `default-features`.
#[cfg(feature="text_graphics")]
pub mod text;

mod mouse_cursor;


mod window;
// Window,

// WindowEvent,
// MouseButton,
// KeyboardButton

// mouse_cursor,
// window_width,
// window_height
// window_center
pub use window::*;

// image::{
//      image,
//
//      Texture,
//      ImageBase
// }

#[cfg(feature="texture_graphics")]
pub mod image;

pub mod graphics;

#[cfg(feature="audio")]
pub mod audio;

/// RGBA - [f32; 4]
pub type Colour=[f32;4];

/// Возвращает прямоугольник размера окна.
/// Returns a window sized rectangle.
/// [0, 0, width, height]
pub fn window_rect()->[f32;4]{
    unsafe{[
        0f32,
        0f32,
        window_width,
        window_height,
    ]}
}