Skip to main content

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 */
8mod math;
9mod misc;
10mod prelude;
11
12pub mod loops {
13    //! Time controlled loops.
14    pub use super::misc::{renderloop, mainloop, LoopState};
15}
16
17pub mod maths {
18    //! Basic math types, traits and methods.
19    pub use super::math::{Angle, Vec2, Vec3, Mat4, Matrix, Vector, min, max, clamp, lerp, approach};
20}
21
22pub mod util {
23    //! Everything else.
24    pub use super::misc::{Rng, Periodic, ARng};
25}
26
27pub use misc::renderloop;
28pub use math::{Vec2, Mat4, Matrix};