diff options
| author | ratalaika <ratalaika@gmail.com> | 2014-11-22 00:13:09 +0100 |
|---|---|---|
| committer | ratalaika <ratalaika@gmail.com> | 2014-11-22 00:13:09 +0100 |
| commit | ab05ace3ce8b999ab665194e63b8b5d03a7787ac (patch) | |
| tree | b7657d2b85f38f53d03368fe88ef54420e83bad2 /src/rlgl.c | |
| parent | 05ccc4fd42a9ff2dfd33f13be29734bb7531d65a (diff) | |
| download | raylib-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.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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) |
