summaryrefslogtreecommitdiffhomepage
path: root/examples/others
diff options
context:
space:
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