g4tools  5.4.0
glbuf
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_glbuf
5 #define tools_glbuf
6 
7 //define of TOOLS_HAS_GL_VBO decided in the build systems.
8 
9 // To have prototypes of glGenBuffers,etc...
10 
11 #ifdef TOOLS_HAS_GL_VBO
12 
13 #ifdef TOOLS_TOOLS_GL
14 #else
15 
16 #if defined(__APPLE__)
17 #include <TargetConditionals.h>
18 #endif
19 
20 #if TARGET_OS_IPHONE
21 #elif defined(ANDROID)
22 #elif _WIN32
23 #include <GL/glext.h>
24 #elif __APPLE__
25 #include <OpenGL/glext.h> //Cocoa
26 #else
27 #include <GL/glext.h>
28 #endif
29 
30 #endif //TOOLS_TOOLS_GL
31 
32 #endif //TOOLS_HAS_GL_VBO
33 
34 #endif