| Revision: | 1.7 |
| Committed: | Wed Nov 3 03:06:54 2004 UTC (21 years, 11 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 *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.1 | #ifndef OPENGL_H |
| 2 | #define OPENGL_H | ||
| 3 | |||
| 4 | root | 1.5 | #ifdef USE_GLEW |
| 5 | # include <GL/glew.h> | ||
| 6 | #else | ||
| 7 | # define GL_GLEXT_PROTOTYPES | ||
| 8 | # include <GL/gl.h> | ||
| 9 | #endif | ||
| 10 | root | 1.1 | |
| 11 | root | 1.2 | #include <GL/glu.h> |
| 12 | root | 1.1 | #include <GL/glext.h> |
| 13 | root | 1.3 | |
| 14 | root | 1.7 | #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 | root | 1.3 | #include <SDL.h> |
| 19 | #define NO_SDL_GLEXT 1 | ||
| 20 | #include <SDL_opengl.h> | ||
| 21 | root | 1.1 | |
| 22 | root | 1.4 | #ifdef DEBUG |
| 23 | root | 1.5 | #ifndef USE_GLEW // not compatible with glew yet |
| 24 | root | 1.4 | # include "gldebug.h" |
| 25 | root | 1.5 | #endif |
| 26 | root | 1.4 | #endif |
| 27 | root | 1.1 | |
| 28 | #endif | ||
| 29 |