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
/// Contains functions for using GPU Compute (GPGPU)
/// Global care configuration parameters
/// Low-level event handling
/// Contains functions for rendering graphics
/// Stuff for working with a keyboard.
/// Contains functions for doing various math tasks, including working with vectors
/// Stuff for working with a mouse
/// Useful structs to have imported
/// Contains functions for working with window(s)
/// Mark a function as the care draw function.
pub use care_async_main as async_main;
/// Mark a function as the care draw function.
pub use care_draw as draw;
/// Mark a function as the care initialization function.
pub use care_init as init;
/// Make some state for the game
pub use care_state as state;
/// Mark a function as the care update function.
pub use care_update as update;
pub use care_main as __internal_main;
/// Global care configuration struct, pass to [main] (e.g. `care::main!(Conf { .. })`),
/// to configure the framework
pub use Conf;
/// The image crate is used for loading and saving images from various formats
pub use image;
/// The nalgebra crate is used for vectors and matracies, have fun with math!
pub use nalgebra;
/// The rand crate is used to generate random numbers
pub use rand;
/// The rust type crate is used internally for loading rendering ttf fonts
pub use rusttype;
/// Inserts a default main function that automatically initializes the framework, opens a window,
/// and calls the functions marked by [init], [update] and [draw] at appropriate
/// times