TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
tb_opengl.hpp
1 
9 #ifndef TurtleBrains_OpenGL_hpp
10 #define TurtleBrains_OpenGL_hpp
11 
12 #include <turtle_brains/core/tb_configuration.hpp>
13 
14 #if defined(tb_windows)
15  #include <glew/glew.h>
16  #include <glew/wglew.h>
17 
18  #include <turtle_brains/core/tb_platform.hpp>
19  #include <GL/gl.h>
20 #elif defined(tb_macos)
21  #include "glew/glew.h"
22  #include <OpenGL/gl.h>
23 #elif defined(tb_ios)
24  #include <OpenGLES/ES2/gl.h>
25  #include <OpenGLES/ES2/glext.h>
26 #elif defined(tb_linux)
27  //May need to include <glew/glxew.h> in cpp if glx is necessary, it pollutes preprocessor with Always.
28  #include <glew/glew.h>
29  #include <GL/gl.h>
30 #elif defined(tb_web)
31 // #include <GLES2/gl2.h>
32  #include <GLES3/gl3.h>
33 #else
34  #error This configuration is currently unsupported by TurtleBrains.
35 #endif
36 
37 #endif /* TurtleBrains_OpenGL_hpp */