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
//! Crate root.
//!
//! Contains modifyable global variables (inside unsafe blocks) to choose Default behaviours. These variables start with `D_`.
//!
//! Everything further in this crate is reexported to this level.
//!
//! ## Don't
//! DO NOT modify/read these global variables simutaneously on different threads.
//! Most likely, don't bother creating several threads at all. The Vera core crate will do the performance job.
//! In case you really want multithreading: some function modify/read these variables, but aren't `unsafe` to simplify scripting. Check the docs of the functions you use to know which ones you should be careful with.
/// Default behaviour: whether or not to choose random colors for each vertex.
/// Overrides `D_VERTEX_COLOR`, but not `D_VERTEX_ALPHA`.
pub static mut D_RANDOM_VERTEX_COLOR: bool = true;
/// Default behaviour: Transformation speed evolution.
pub static mut D_TRANSFORMATION_SPEED_EVOLUTION: Evolution = Linear;
/// Default behaviour: Transformation start time.
pub static mut D_TRANSFORMATION_START_TIME: f32 = 0.0;
/// Default behaviour: Transformation end time.
pub static mut D_TRANSFORMATION_END_TIME: f32 = 2.0;
/// Default behaviour: Colorization speed evolution.
pub static mut D_COLORIZATION_SPEED_EVOLUTION: Evolution = Linear;
/// Default behaviour: Colorization start time.
pub static mut D_COLORIZATION_START_TIME: f32 = 0.0;
/// Default behaviour: Colorization end time.
pub static mut D_COLORIZATION_END_TIME: f32 = 2.0;
/// Default behaviour: which position to give vertices.
pub static mut D_VERTEX_POSITION: = ;
/// Default behaviour: which color to give vertices.
pub static mut D_VERTEX_COLOR: = ;
/// Default behaviour: What transparency value to give vertices.
pub static mut D_VERTEX_ALPHA: f32 = 1.0;
/// Default view matrix
pub static mut VIEW: f32 = 0.8;
/// A vertex, belonging to a model
pub use *;
/// A model, something that is drawn
pub use *;
/// A view, representation of a camera
pub use *;
/// A projection, defined the viewing frustrum.
pub use *;
/// Transformations for vertices/models, views and projections.
pub use *;
/// The input of the Vera core. This is what you send when calling functions like `create()` or `reset()`.
/// It contains everything that will be drawn and updated.