dxx-rebirth/common/include/d_gl.h
Kp 90d7e39980 Move inclusion of platform-appropriate GL headers to a separate file
Some files may need to include platform GL headers, but not process all
the Rebirth-specific GL code.
2020-07-05 23:34:32 +00:00

26 lines
613 B
C

/*
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
* It is copyright by its individual contributors, as recorded in the
* project's Git history. See COPYING.txt at the top level for license
* terms and a link to the Git history.
*/
#ifdef _WIN32
#include "loadgl.h"
#else
#include "dxxsconf.h"
# define GL_GLEXT_LEGACY
# if defined(__APPLE__) && defined(__MACH__)
# include <OpenGL/gl.h>
# include <OpenGL/glu.h>
# else
# define GL_GLEXT_PROTOTYPES
# if DXX_USE_OGLES
# include <GLES/gl.h>
# else
# include <GL/gl.h>
# include <GL/glext.h>
# endif
# endif
#endif