aboutsummaryrefslogtreecommitdiff
path: root/src/renderConstants.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderConstants.zig')
-rw-r--r--src/renderConstants.zig17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/renderConstants.zig b/src/renderConstants.zig
index 2dbadee..7c193a7 100644
--- a/src/renderConstants.zig
+++ b/src/renderConstants.zig
@@ -14,13 +14,16 @@
//
// 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 ScreenWidth: f32 = 1024;
+pub const ScreenHeight: f32 = 768;
-pub const planeWidth = 320;
-pub const planeHeight = 240;
+pub const PlaneWidth = 320;
+pub const PlaneHeight = 240;
-pub const backTextureWidth: f32 = 1280;
-pub const backTextureHeight: f32 = 240;
+pub const HFact = ScreenWidth / PlaneWidth;
+pub const VFact = ScreenHeight / PlaneHeight;
-pub const wallTextureDim: f32 = 32.0;
+pub const BackTextureWidth: f32 = 1280;
+pub const BackTextureHeight: f32 = 240;
+
+pub const TextureDim: f32 = 32.0;