Compare commits
1 commit
master
...
DanielMowi
Author | SHA1 | Date | |
---|---|---|---|
|
57c91005ee |
1 changed files with 7 additions and 10 deletions
15
src/bin.rs
15
src/bin.rs
|
@ -2,22 +2,19 @@ extern crate frame;
|
||||||
extern crate sdl2;
|
extern crate sdl2;
|
||||||
|
|
||||||
use frame::scene_manager::SceneManager;
|
use frame::scene_manager::SceneManager;
|
||||||
|
use frame::renderer::Renderer;
|
||||||
mod main_menu;
|
use frame::dispatcher::Dispatcher;
|
||||||
mod space_ship;
|
use frame::example_obj::ExampleObj;
|
||||||
mod light_path;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let mut ship = space_ship::Spaceship::new();
|
let mut renderer = Renderer::new(512, 512, None);
|
||||||
let mut renderer = frame::renderer::Renderer::new(512, 512, None);
|
|
||||||
|
|
||||||
let mut menu = main_menu::MainMenu::new();
|
|
||||||
let mut scene_manager = SceneManager::new();
|
let mut scene_manager = SceneManager::new();
|
||||||
|
|
||||||
scene_manager.add_scenes(vec![&mut menu]);
|
let mut disp = Dispatcher::new(1.0 / 60.0);
|
||||||
|
|
||||||
let mut disp = frame::dispatcher::Dispatcher::new(1.0 / 60.0);
|
let mut obj =
|
||||||
|
|
||||||
frame::game_loop(
|
frame::game_loop(
|
||||||
&mut disp,
|
&mut disp,
|
||||||
|
|
Loading…
Reference in a new issue