aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/camera.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:21 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:21 +0100
commit4cfa1bf05616089e166e252c5f583f20274658e9 (patch)
treebbce28bb7284289fec185398421db6a0519e9837 /stockton-render/src/draw/camera.rs
parent9f6b7a10e7e00edf6ab50a9cf162b377d84a43f6 (diff)
refactor(all): remove render-quad and optimise imports
Diffstat (limited to 'stockton-render/src/draw/camera.rs')
-rw-r--r--stockton-render/src/draw/camera.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/stockton-render/src/draw/camera.rs b/stockton-render/src/draw/camera.rs
index 1a16803..0e9011a 100644
--- a/stockton-render/src/draw/camera.rs
+++ b/stockton-render/src/draw/camera.rs
@@ -15,19 +15,10 @@
//! Things related to converting 3D world space to 2D screen space
-use std::iter::once;
-use std::f32::consts::PI;
-use hal::prelude::*;
-use hal::buffer::Usage;
-use na::{look_at_lh, perspective_lh_zo};
-
-use core::mem::ManuallyDrop;
-
-use crate::error;
-use crate::types::*;
-use super::buffer::{StagedBuffer, ModifiableBuffer};
use stockton_types::{Vector3, Matrix4};
-use na::{Mat4, Vec4};
+
+use std::f32::consts::PI;
+use na::{look_at_lh, perspective_lh_zo, Mat4, Vec4};
/// 90 degrees in radians
const R89: f32 = (PI / 180.0) * 89.0;