From dc843e6bab3e3d952d3c94b7788b339d02c76704 Mon Sep 17 00:00:00 2001 From: Miloslav Ciz Date: Thu, 22 Sep 2022 19:35:20 +0200 Subject: [PATCH] Add RCL_U --- raycastlib.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index 38a70ff..f5092a4 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -39,7 +39,8 @@ Only use if neccesarry, looks ugly. Also not done yet. */ #define RCL_UNITS_PER_SQUARE 1024 /**< Number of RCL_Units in a side of a - spatial square. */ + spatial square, i.e. the fixed point + scaling. */ typedef int32_t RCL_Unit; /**< Smallest spatial unit, there is RCL_UNITS_PER_SQUARE units in a square's length. This effectively serves the purpose of @@ -51,6 +52,8 @@ #define RCL_INFINITY 30000 #define RCL_USE_DIST_APPROX 2 #endif + +#define RCL_U RCL_UNITS_PER_SQUARE ///< shorthand for RCL_UNITS_PER_SQUARE #ifndef RCL_COMPUTE_WALL_TEXCOORDS #define RCL_COMPUTE_WALL_TEXCOORDS 1