Compare commits
No commits in common. "DanielMowitz-patch-1" and "master" have entirely different histories.
DanielMowi
...
master
1 changed files with 10 additions and 7 deletions
15
src/bin.rs
15
src/bin.rs
|
@ -2,19 +2,22 @@ extern crate frame;
|
|||
extern crate sdl2;
|
||||
|
||||
use frame::scene_manager::SceneManager;
|
||||
use frame::renderer::Renderer;
|
||||
use frame::dispatcher::Dispatcher;
|
||||
use frame::example_obj::ExampleObj;
|
||||
|
||||
mod main_menu;
|
||||
mod space_ship;
|
||||
mod light_path;
|
||||
|
||||
fn main() {
|
||||
|
||||
let mut renderer = Renderer::new(512, 512, None);
|
||||
let mut ship = space_ship::Spaceship::new();
|
||||
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 disp = Dispatcher::new(1.0 / 60.0);
|
||||
scene_manager.add_scenes(vec![&mut menu]);
|
||||
|
||||
let mut obj =
|
||||
let mut disp = frame::dispatcher::Dispatcher::new(1.0 / 60.0);
|
||||
|
||||
frame::game_loop(
|
||||
&mut disp,
|
||||
|
|
Loading…
Reference in a new issue