| 1 |
/* |
| 2 |
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>. |
| 3 |
* It is copyright by its individual contributors, as recorded in the |
| 4 |
* project's Git history. See COPYING.txt at the top level for license |
| 5 |
* terms and a link to the Git history. |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "dxxsconf.h" |
| 9 |
#if !DXX_USE_OGL |
| 10 |
#error "This file can only be included in OpenGL enabled builds." |
| 11 |
#endif |
| 12 |
|
| 13 |
#ifdef _WIN32 |
| 14 |
#include "loadgl.h" |
| 15 |
#else |
| 16 |
# define GL_GLEXT_LEGACY |
| 17 |
# if defined(__APPLE__) && defined(__MACH__) |
| 18 |
# include <OpenGL/gl.h> |
| 19 |
# include <OpenGL/glu.h> |
| 20 |
# else |
| 21 |
# define GL_GLEXT_PROTOTYPES |
| 22 |
# if DXX_USE_OGLES |
| 23 |
# include <GLES/gl.h> |
| 24 |
# else |
| 25 |
# include <GL/gl.h> |
| 26 |
# include <GL/glext.h> |
| 27 |
# endif |
| 28 |
# endif |
| 29 |
#endif |