emilib
emilib
gl_lib_opengl.hpp
1
// By Emil Ernerfeldt 2012-2016
2
// LICENSE:
3
// This software is dual-licensed to the public domain and under the following
4
// license: you are granted a perpetual, irrevocable license to copy, modify,
5
// publish, and distribute this file as you see fit.
6
7
#pragma once
8
9
#include "gl_lib_fwd.hpp"
10
11
// ------------------------------------------------
12
13
#define GLEW_NO_GLU
14
15
// ------------------------------------------------
16
#if TARGET_OS_IPHONE
17
#include <OpenGLES/ES2/glext.h>
18
// ------------------------------------------------
19
#elif TARGET_OS_MAC
20
#include <GL/glew.h>
21
22
//#ifndef __OBJC__
23
#if 0
24
#include <GL/glxew.h>
25
#undef None
26
#endif
27
28
#if GLLIB_OPENGL_VERSION < 300
29
#include <OpenGL/gl.h>
30
#else
31
#include <OpenGL/gl3.h>
32
#endif
33
// ------------------------------------------------
34
#else // Windows?
35
#include <GL/glew.h>
36
// ------------------------------------------------
37
38
#endif
Generated by
1.8.13