radiant_utils/
lib.rs

1/*!
2 * Radiant example code support library.
3 *
4 * # This is not the library you are looking for
5 * This library implements very basic, minimally tested math/support features for the radiant-rs examples.
6 * It may be useful for early prototyping or super simple games, you likely want to look for something else though.
7 */
8#[cfg(feature = "uniforms")]
9extern crate radiant_rs;
10extern crate num_traits;
11#[cfg(feature = "serialize-serde")]
12extern crate serde;
13#[cfg(feature = "serialize-serde")]
14#[macro_use] extern crate serde_derive;
15mod math;
16mod misc;
17mod prelude;
18
19pub mod loops {
20    //! Time controlled loops.
21    pub use super::misc::{renderloop, mainloop, LoopState};
22}
23
24pub mod maths {
25    //! Basic math types, traits and methods.
26    pub use super::math::{Angle, Vec2, Vec3, Mat4, Matrix, Vector, min, max, clamp, lerp, approach};
27}
28
29pub mod util {
30    //! Everything else.
31    pub use super::misc::{Rng, Periodic, ARng};
32}
33
34pub use misc::renderloop;
35pub use math::{Vec2, Mat4, Matrix};