aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/bundled/Base/GemGL.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/gridflow/bundled/Base/GemGL.h')
-rw-r--r--externals/gridflow/bundled/Base/GemGL.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/externals/gridflow/bundled/Base/GemGL.h b/externals/gridflow/bundled/Base/GemGL.h
new file mode 100644
index 00000000..24d6fe99
--- /dev/null
+++ b/externals/gridflow/bundled/Base/GemGL.h
@@ -0,0 +1,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_ */