diff options
| author | raysan5 <[email protected]> | 2021-07-30 13:44:52 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-07-30 13:44:52 +0200 |
| commit | b4fddf146b1f3d7c0548263594ad7283e6a9ac71 (patch) | |
| tree | fce34d8b6d2049806f598ac59ffa6673d361a6b5 /src/raylib.h | |
| parent | aeb1a0da84adc9e6987e1436431ea9cf495c8802 (diff) | |
| download | raylib-b4fddf146b1f3d7c0548263594ad7283e6a9ac71.tar.gz raylib-b4fddf146b1f3d7c0548263594ad7283e6a9ac71.zip | |
REVIEWED: Added new mechanism to avoid data types collision between modules that share same data types and can be used in standalone mode
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index e70dad77..f3d56a01 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -128,6 +128,16 @@ #define CLITERAL(type) (type) #endif +// NOTE: We set some defines with some data types declared by raylib +// Other modules (raymath, rlgl) also require some of those types, so, +// to be able to use those other modules as standalone (not depending on raylib) +// this defines are very useful for internal check and avoid type (re)definitions +#define RL_VECTOR2_TYPE +#define RL_VECTOR3_TYPE +#define RL_VECTOR4_TYPE +#define RL_QUATERNION_TYPE +#define RL_MATRIX_TYPE + // Some Basic Colors // NOTE: Custom raylib color palette for amazing visuals on WHITE background #define LIGHTGRAY CLITERAL(Color){ 200, 200, 200, 255 } // Light Gray |
