Skip to content

Commit

Permalink
wip: make compile
Browse files Browse the repository at this point in the history
  • Loading branch information
berkus committed Feb 4, 2024
1 parent 081f99b commit d11dcb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,17 @@ fn main() {

let mut app = App::new();

app.register_asset_loader(CarAssetLoader)
.init_asset::<CarAsset>();

app.add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest()))
.add_plugins(WorldInspectorPlugin::new())
.add_plugins(LookTransformPlugin)
.add_plugins(UnrealCameraPlugin::default())
.add_systems(Startup, setup_cars)
.add_systems(Startup, setup)
.add_systems(Startup, (setup_cars, setup))
.add_systems(Update, rotate);
// .add_system(animate_camera)

app.register_asset_loader(CarAssetLoader)
.init_asset::<CarAsset>();

// app.configure_sets(Update, (
// MainMenuSet
// .run_if(in_state(MainMenu)),
Expand Down
5 changes: 4 additions & 1 deletion src/support/render_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt)
//
use {
crate::support::{actor::ActorNode, car::Car, Vertex},
crate::{
support::{actor::ActorNode, car::Car, Vertex},
CameraState,
},
cgmath::{prelude::*, Matrix4, Vector3},
glium::{
self,
Expand Down
2 changes: 1 addition & 1 deletion src/support/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
// one possible implementation of walking a directory only visiting files
#[throws]
pub fn visit_files<P: AsRef<Path>>(dir: P, cb: &mut dyn for<'r> FnMut(&'r DirEntry) -> Result<()>) {
if dir.is_dir() {
if dir.as_ref().is_dir() {
for entry in fs::read_dir(dir)? {
let entry = entry?;
let path = entry.path();
Expand Down

0 comments on commit d11dcb8

Please sign in to comment.