1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
// Load extern crates
extern crate cgmath;
extern crate gl;
extern crate image;
extern crate rayon;
#[macro_use]
extern crate lazy_static;
extern crate rusttype;
extern crate sdl2;
extern crate unicode_normalization;

pub mod graphics;
pub mod input;
pub mod maths;
pub mod resources;
pub mod transform;

/// Initializes and returns an Sdl object, required to initialize some components such as GraphicsManager.
pub fn init_sdl() -> Result<sdl2::Sdl, String> {
    sdl2::init()
}