-
-
Notifications
You must be signed in to change notification settings - Fork 384
/
Copy pathprojectM-opengl.h
40 lines (36 loc) · 978 Bytes
/
projectM-opengl.h
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
29
30
31
32
33
34
35
36
37
38
39
40
/**
Include appropriate OpenGL headers for this platform.
**/
#pragma once
// Enable openGL extra checks, better not be enabled in release build
#define OGL_DEBUG 0
// Unlock FPS for rendering benchmarks, it disables Vblank/Vsync and prints drawn frame count within a 5s test run
#define UNLOCK_FPS 0
#ifdef __APPLE__
# include <OpenGL/gl3.h>
# include <OpenGL/gl3ext.h>
#elif defined(EYETUNE_WINRT)
# define GL_GLEXT_PROTOTYPES
# define GLM_FORCE_CXX03
# include <GLES3/gl31.h>
# include <GLES3/gl3.h>
# include <GLES2/gl2.h>
# include <GLES2/gl2ext.h>
# include <EGL/egl.h>
# include <EGL/eglext.h>
#elif defined(_WIN32)
# define GLM_FORCE_CXX03
# include <windows.h>
# include <GL/glew.h>
# include <GL/wglew.h>
#else /* linux/unix/other */
# ifdef USE_GLES
# include <GLES3/gl3.h>
# else
# if !defined(GL_GLEXT_PROTOTYPES)
# define GL_GLEXT_PROTOTYPES
# endif
# include <GL/gl.h>
# include <GL/glext.h>
# endif
#endif