mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Add RCL_U
This commit is contained in:
parent
26ea2462f3
commit
dc843e6bab
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,8 @@
|
||||||
Only use if neccesarry, looks ugly. Also not done
|
Only use if neccesarry, looks ugly. Also not done
|
||||||
yet. */
|
yet. */
|
||||||
#define RCL_UNITS_PER_SQUARE 1024 /**< Number of RCL_Units in a side of a
|
#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
|
typedef int32_t RCL_Unit; /**< Smallest spatial unit, there is
|
||||||
RCL_UNITS_PER_SQUARE units in a square's
|
RCL_UNITS_PER_SQUARE units in a square's
|
||||||
length. This effectively serves the purpose of
|
length. This effectively serves the purpose of
|
||||||
|
@ -52,6 +53,8 @@
|
||||||
#define RCL_USE_DIST_APPROX 2
|
#define RCL_USE_DIST_APPROX 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define RCL_U RCL_UNITS_PER_SQUARE ///< shorthand for RCL_UNITS_PER_SQUARE
|
||||||
|
|
||||||
#ifndef RCL_COMPUTE_WALL_TEXCOORDS
|
#ifndef RCL_COMPUTE_WALL_TEXCOORDS
|
||||||
#define RCL_COMPUTE_WALL_TEXCOORDS 1
|
#define RCL_COMPUTE_WALL_TEXCOORDS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue