diff options
author | HampusM <hampus@hampusmat.com> | 2025-01-19 22:35:49 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-01-19 23:04:30 +0100 |
commit | e2c15f3f2fb6a67d615322020a78bf334621b16c (patch) | |
tree | 8a0d081574ac9376092b817332452284d18d551f /engine/src/data_types | |
parent | 9b4b46438eca26faca9809646dc1631ddcafd64e (diff) |
feat(engine): add orthographic projection support
Diffstat (limited to 'engine/src/data_types')
-rw-r--r-- | engine/src/data_types/dimens.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engine/src/data_types/dimens.rs b/engine/src/data_types/dimens.rs index b395627..5002436 100644 --- a/engine/src/data_types/dimens.rs +++ b/engine/src/data_types/dimens.rs @@ -1,7 +1,16 @@ -/// Dimensions. +/// 2D dimensions. #[derive(Debug, Clone, Copy)] pub struct Dimens<Value> { pub width: Value, pub height: Value, } + +/// 3D dimensions. +#[derive(Debug, Clone, Copy, PartialEq, PartialOrd)] +pub struct Dimens3<Value> +{ + pub width: Value, + pub height: Value, + pub depth: Value, +} |