-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove even more "dead code" now that the demos are gone
- Loading branch information
Showing
3 changed files
with
1 addition
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,10 @@ | ||
use crate::rendering::common::types::{Material, MeshWithLod}; | ||
use crate::rendering::loader::m2_loader::LoadedM2; | ||
use glam::Affine3A; | ||
use std::sync::Arc; | ||
|
||
// TODO: deprecate this file in favor of dedicated graph nodes? | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct PlacedDoodad { | ||
pub transform: Affine3A, | ||
|
||
/// The "loaded" (i.e. parsed and converted into IR) version of the m2 model. | ||
/// This is an Arc, because models are deduplicated and concurrent loads may have happened | ||
pub m2: Arc<LoadedM2>, | ||
} | ||
|
||
#[derive(Debug, Clone)] | ||
/// A doodad that has been referenced somewhere, but whos M2 is not loaded yet. | ||
pub struct PlaceableDoodad { | ||
pub transform: Affine3A, | ||
pub m2_ref: String, | ||
} | ||
|
||
#[derive(Clone)] | ||
pub struct PlaceableWMO { | ||
pub doodads: Vec<PlaceableDoodad>, | ||
pub loaded_groups: Vec<(MeshWithLod, Vec<Material>)>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters