Added first version of OS X compilation support
This commit is contained in:
parent
05ccc4fd42
commit
ab05ace3ce
1 changed files with 352 additions and 11 deletions
16
src/rlgl.c
16
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue