aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/parts/visdata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-levels/src/parts/visdata.rs')
-rw-r--r--stockton-levels/src/parts/visdata.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/stockton-levels/src/parts/visdata.rs b/stockton-levels/src/parts/visdata.rs
index f311bf7..aa2ec3d 100644
--- a/stockton-levels/src/parts/visdata.rs
+++ b/stockton-levels/src/parts/visdata.rs
@@ -1,8 +1,8 @@
use super::faces::FaceRef;
-use na::Vector3;
use std::iter::Iterator;
+use stockton_types::components::{CameraSettings, Transform};
-pub trait HasVisData {
+pub trait HasVisData<'a> {
type Faces: Iterator<Item = FaceRef>;
- fn get_visible(pos: Vector3<f32>, rot: Vector3<f32>) -> Self::Faces;
+ fn get_visible(&'a self, transform: &Transform, settings: &CameraSettings) -> Self::Faces;
}