aboutsummaryrefslogtreecommitdiff
path: root/src/constants.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants.zig')
-rw-r--r--src/constants.zig31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/constants.zig b/src/constants.zig
new file mode 100644
index 0000000..5c89b94
--- /dev/null
+++ b/src/constants.zig
@@ -0,0 +1,31 @@
+// This file is part of ZiRC
+//
+// Copyright (C) 2021, tslil clingman
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+pub const ScreenWidth: f32 = 1024;
+pub const ScreenHeight: f32 = 768;
+
+pub const PlaneWidth = 320;
+pub const PlaneHeight = 240;
+
+pub const HFact = ScreenWidth / PlaneWidth;
+pub const VFact = ScreenHeight / PlaneHeight;
+
+pub const BackTextureWidth: f32 = 1280;
+pub const BackTextureHeight: f32 = 240;
+
+pub const TextureDim: f32 = 32.0;
+
+pub const MAX_HEIGHT: f32 = 1;