ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/opengl.h
Revision: 1.7
Committed: Wed Nov 3 03:06:54 2004 UTC (19 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +4 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef OPENGL_H
2 #define OPENGL_H
3
4 #ifdef USE_GLEW
5 # include <GL/glew.h>
6 #else
7 # define GL_GLEXT_PROTOTYPES
8 # include <GL/gl.h>
9 #endif
10
11 #include <GL/glu.h>
12 #include <GL/glext.h>
13
14 #if GL_GLEXT_VERSION < 24
15 # error "need at least version 24 of glext.h, see http://oss.sgi.com/projects/ogl-sample/registry/"
16 #endif
17
18 #include <SDL.h>
19 #define NO_SDL_GLEXT 1
20 #include <SDL_opengl.h>
21
22 #ifdef DEBUG
23 #ifndef USE_GLEW // not compatible with glew yet
24 # include "gldebug.h"
25 #endif
26 #endif
27
28 #endif
29