summaryrefslogtreecommitdiffhomepage
path: root/examples/others
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 /examples/others
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 'examples/others')
-rw-r--r--examples/others/rlgl_standalone.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c
index d92729f7..0ddae317 100644
--- a/examples/others/rlgl_standalone.c
+++ b/examples/others/rlgl_standalone.c
@@ -48,14 +48,12 @@
*
********************************************************************************************/
-#define RAYMATH_STANDALONE
-#define RAYMATH_HEADER_ONLY
-#include "raymath.h" // Vector3, Quaternion and Matrix functionality
-
#define RLGL_IMPLEMENTATION
-#define RLGL_STANDALONE
#include "rlgl.h" // OpenGL abstraction layer to OpenGL 1.1, 3.3+ or ES2
+#define RAYMATH_STATIC_INLINE
+#include "raymath.h" // Vector3, Quaternion and Matrix functionality
+
#if defined(__EMSCRIPTEN__)
#define GLFW_INCLUDE_ES2
#endif
@@ -79,21 +77,6 @@ typedef struct Color {
unsigned char a; // Color alpha value
} Color;
-#if !defined(RAYMATH_STANDALONE)
-// Vector2, 2 components
-typedef struct Vector2 {
- float x; // Vector x component
- float y; // Vector y component
-} Vector2;
-
-// Vector3, 3 components
-typedef struct Vector3 {
- float x; // Vector x component
- float y; // Vector y component
- float z; // Vector z component
-} Vector3;
-#endif
-
// Camera type, defines a camera position/orientation in 3d space
typedef struct Camera {
Vector3 position; // Camera position