aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/parts/visdata.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:23 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:23 +0100
commit439219e74090c7158f8dbc33fed4107a5eb7c003 (patch)
tree7ba62254b2d888578ff6c1c8de4f0f35c01c75dd /stockton-levels/src/parts/visdata.rs
parent04f17923d38171f07f72603a54237f20ca3572dd (diff)
refactor(levels): no longer q3 specific
Diffstat (limited to 'stockton-levels/src/parts/visdata.rs')
-rw-r--r--stockton-levels/src/parts/visdata.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/stockton-levels/src/parts/visdata.rs b/stockton-levels/src/parts/visdata.rs
new file mode 100644
index 0000000..f311bf7
--- /dev/null
+++ b/stockton-levels/src/parts/visdata.rs
@@ -0,0 +1,8 @@
+use super::faces::FaceRef;
+use na::Vector3;
+use std::iter::Iterator;
+
+pub trait HasVisData {
+ type Faces: Iterator<Item = FaceRef>;
+ fn get_visible(pos: Vector3<f32>, rot: Vector3<f32>) -> Self::Faces;
+}