diff options
author | N.N. <matju@users.sourceforge.net> | 2008-07-08 05:56:10 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2008-07-08 05:56:10 +0000 |
commit | 089475041fe26964d72cb2ebc3559a36ba89a2f2 (patch) | |
tree | 4ea7537e82b2ee34748ef7cbfc18c523425d4f7a /externals/gridflow/bundled/Base/GemGL.h | |
parent | d1ad56f1da41e7a88eb9a52d6b0daaf145b54ea7 (diff) |
trying to import gridflow 0.9.4
svn path=/trunk/; revision=10148
Diffstat (limited to 'externals/gridflow/bundled/Base/GemGL.h')
-rw-r--r-- | externals/gridflow/bundled/Base/GemGL.h | 72 |
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_ */ |