Support Apple include files for OpenGL
This commit is contained in:
parent
e8df1282d2
commit
e657b3d48e
|
@ -1,5 +1,11 @@
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <OpenGL/glew.h>
|
||||||
|
#include <OpenGL/freeglut.h>
|
||||||
|
#else
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <GL/freeglut.h> //includes glu.h and gl.h
|
#include <GL/freeglut.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <glm/mat4x4.hpp>
|
#include <glm/mat4x4.hpp>
|
||||||
#include <glm/ext/matrix_transform.hpp>
|
#include <glm/ext/matrix_transform.hpp>
|
||||||
#include <glm/gtc/type_ptr.hpp>
|
#include <glm/gtc/type_ptr.hpp>
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
#ifndef GRAPHICS_H
|
#ifndef GRAPHICS_H
|
||||||
#define GRAPHICS_H
|
#define GRAPHICS_H
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <OpenGL/gl.h>
|
||||||
|
#else
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <glm/vec2.hpp>
|
#include <glm/vec2.hpp>
|
||||||
|
|
||||||
void initGraphics ();
|
void initGraphics ();
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <OpenGL/glew.h>
|
||||||
|
#else
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <glm/mat4x4.hpp>
|
#include <glm/mat4x4.hpp>
|
||||||
#include <glm/gtc/type_ptr.hpp>
|
#include <glm/gtc/type_ptr.hpp>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue