-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathlib.rs
More file actions
46 lines (35 loc) · 1 KB
/
lib.rs
File metadata and controls
46 lines (35 loc) · 1 KB
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
/*!
# Engine System
The engine for CodeVR is composed of a number of subsystems:
- **Config** - The engine configuration that subsystems can query for reinitialization of important constructs.
- **Vulkan Renderer** - Given a scene graph description, the renderer creates vulkan constructs and renders to the window's surface.
- **Input System** - Maps input devices to scene actors.
With more incoming.
*/
#[macro_use] extern crate serde_derive;
#[macro_use] extern crate vulkano;
extern crate cgmath;
extern crate image;
extern crate serde_json;
extern crate serde;
extern crate vulkano_win;
extern crate winit;
#[cfg(test)] mod tests;
mod input;
mod renderer;
mod config;
mod core;
pub use self::core::*;
pub use self::renderer::gfx;
/// Starts the CodeVR Game Engine
pub fn bootstrap(scene: Scene) {
// Initialize app state
let config = config::read();
// Start engine
let mut engine = Engine::new(config, scene);
// Render loop
while engine.io()
{
engine.update();
}
}