aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorratalaika <ratalaika@gmail.com>2014-11-22 00:13:09 +0100
committerratalaika <ratalaika@gmail.com>2014-11-22 00:13:09 +0100
commitab05ace3ce8b999ab665194e63b8b5d03a7787ac (patch)
treeb7657d2b85f38f53d03368fe88ef54420e83bad2 /src/rlgl.c
parent05ccc4fd42a9ff2dfd33f13be29734bb7531d65a (diff)
downloadraylib-ab05ace3ce8b999ab665194e63b8b5d03a7787ac.tar.gz
raylib-ab05ace3ce8b999ab665194e63b8b5d03a7787ac.zip
Added first version of OS X compilation support
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 8f1a66a8..865281a3 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -32,13 +32,23 @@
#include <stdlib.h> // Declares malloc() and free() for memory management, rand()
#if defined(GRAPHICS_API_OPENGL_11)
- #include <GL/gl.h> // Basic OpenGL include
+ #ifdef __APPLE__
+ #include <OpenGL/gl.h>
+ #include <OpenGL/glu.h>
+ #include <GLUT/glut.h>
+ #else
+ #include <GL/gl.h> // Basic OpenGL include
+ #endif
#endif
#if defined(GRAPHICS_API_OPENGL_33)
#define GLEW_STATIC
- #include <GL/glew.h> // Extensions loading lib
- //#include "glad.h" // TODO: Other extensions loading lib? --> REVIEW
+ #ifdef __APPLE__
+ #include <OpenGL/gl3.h>
+ #else
+ #include <GL/glew.h> // Extensions loading lib
+ //#include "glad.h" // TODO: Other extensions loading lib? --> REVIEW
+ #endif
#endif
#if defined(GRAPHICS_API_OPENGL_ES2)