summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-07-30 13:44:52 +0200
committerraysan5 <[email protected]>2021-07-30 13:44:52 +0200
commitb4fddf146b1f3d7c0548263594ad7283e6a9ac71 (patch)
treefce34d8b6d2049806f598ac59ffa6673d361a6b5 /src/raylib.h
parentaeb1a0da84adc9e6987e1436431ea9cf495c8802 (diff)
downloadraylib-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.h10
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