Mercurial > sdl-ios-xcode
comparison include/SDL_opengl.h @ 1402:d910939febfa
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Feb 2006 08:46:50 +0000 |
parents | c9b51268668f |
children | 7a610f25c12f |
comparison
equal
deleted
inserted
replaced
1401:1819fd069e89 | 1402:d910939febfa |
---|---|
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 | 22 |
23 /* This is a simple file to encapsulate the OpenGL API headers */ | 23 /* This is a simple file to encapsulate the OpenGL API headers */ |
24 | 24 |
25 #ifdef WIN32 | 25 #include "SDL_config.h" |
26 | |
27 #ifdef __WIN32__ | |
26 #define WIN32_LEAN_AND_MEAN | 28 #define WIN32_LEAN_AND_MEAN |
27 #ifndef NOMINMAX | 29 #ifndef NOMINMAX |
28 #define NOMINMAX /* Don't defined min() and max() */ | 30 #define NOMINMAX /* Don't defined min() and max() */ |
29 #endif | 31 #endif |
30 #include <windows.h> | 32 #include <windows.h> |
31 #endif | 33 #endif |
32 #ifndef NO_SDL_GLEXT | 34 #ifndef NO_SDL_GLEXT |
33 #define __glext_h_ /* Don't let gl.h include glext.h */ | 35 #define __glext_h_ /* Don't let gl.h include glext.h */ |
34 #endif | 36 #endif |
35 #if defined(__APPLE__) && defined(__MACH__) | 37 #ifdef __MACOSX__ |
36 #include <OpenGL/gl.h> /* Header File For The OpenGL Library */ | 38 #include <OpenGL/gl.h> /* Header File For The OpenGL Library */ |
37 #include <OpenGL/glu.h> /* Header File For The GLU Library */ | 39 #include <OpenGL/glu.h> /* Header File For The GLU Library */ |
38 #else | 40 #else |
39 #include <GL/gl.h> /* Header File For The OpenGL Library */ | 41 #include <GL/gl.h> /* Header File For The OpenGL Library */ |
40 #include <GL/glu.h> /* Header File For The GLU Library */ | 42 #include <GL/glu.h> /* Header File For The GLU Library */ |