Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gl_includes.hpp « drape - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3f0106bd85a23d2e4b5f8d261d185956dfc6e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "std/target_os.hpp"

#if defined(OMIM_OS_IPHONE)
  #define GL_SILENCE_DEPRECATION
  #include <OpenGLES/ES2/glext.h>
  #include <OpenGLES/ES3/gl.h>
#elif defined(OMIM_OS_MAC)
  #define GL_SILENCE_DEPRECATION
  #include <OpenGL/glext.h>
  #include <OpenGL/gl3.h>
#elif defined(OMIM_OS_WINDOWS)
  #include "std/windows.hpp"
  #define GL_GLEXT_PROTOTYPES
  #include <GL/gl.h>
  #include "3party/GL/glext.h"
#elif defined(OMIM_OS_ANDROID)
  #define GL_GLEXT_PROTOTYPES
  #include <GLES2/gl2.h>
  #include <GLES2/gl2ext.h>
  #include "android/jni/com/mapswithme/opengl/gl3stub.h"
  #include <EGL/egl.h>
#else
  #define GL_GLEXT_PROTOTYPES
  #include <GL/gl.h>
  #include <GL/glext.h>
#endif