diff options
| author | tslil clingman <> | 2021-09-05 21:30:31 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2021-09-05 21:31:59 -0400 |
| commit | 631c1226691505624c08995b6a2ac81e46a9b17e (patch) | |
| tree | 88fce088399ba4f4880298729cf98592d631ac70 /src/constants.zig | |
| parent | a35ac9be26a148a87283ba51ed92d8c2b95bcd24 (diff) | |
In response to issue #9629, correct usingnamespace usage
Diffstat (limited to 'src/constants.zig')
| -rw-r--r-- | src/constants.zig | 31 |
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; |
