aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/bundled/Base/GemGL.h
blob: 24d6fe996c8562fcf159690616658865319968bd (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 * GemGL: openGL includes for GEM
 *
 * include this file if you want to include the
 * openGL-headers installed on your system
 *
 * tasks:
 *
 * + this file hides the peculiarities of the various platforms
 *   (like "OpenGL/gl.h" vs "GL/gl.h")
 *
 * + define some pre-processor defines that are missing in the GL-headers
 *
 * + try to exclude parts of the GL-headers based on config.h
 *
 */


#ifndef INCLUDE_GEMGL_H_
#define INCLUDE_GEMGL_H_

#include "config.h"

// I hate Microsoft...I shouldn't have to do this!
#ifdef __WIN32__
# include <windows.h>
#endif

#define GLEW_STATIC
//#include "Base/glew.h"
#ifdef __APPLE__
typedef   signed long GLint;
typedef unsigned long GLenum;
#else
typedef   signed int GLint;
typedef unsigned int GLenum;
#endif
typedef float GLfloat;
typedef unsigned char GLboolean;
#define GL_RGBA_MODE     0x0C31
#define GL_UNSIGNED_BYTE 0x1401
#define GL_RGBA          0x1908


#ifdef __APPLE__
# include <OpenGL/OpenGL.h>
#elif defined __WIN32__
# include "Base/wglew.h"
#elif defined __linux__

#endif /* OS */

#ifndef GL_YUV422_GEM
# define GL_YCBCR_422_GEM GL_YCBCR_422_APPLE
# define GL_YUV422_GEM GL_YCBCR_422_GEM
#endif /* GL_YUV422_GEM */


#ifndef GL_RGBA_GEM
# ifdef __APPLE__
#  define GL_RGBA_GEM GL_BGRA_EXT
# else
#  define GL_RGBA_GEM GL_RGBA
# endif
#endif /* GL_RGBA_GEM */

/* default draw-style */
#ifndef GL_DEFAULT_GEM
# define GL_DEFAULT_GEM 0xFFFF
#endif

#endif /* INCLUDE_GEMGL_H_ */