1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
#ifndef _GL_STUB_H_
#define _GL_STUB_H_
#undef GL_GLEXT_LEGACY
#define GL_GLEXT_PROTOTYPES
#ifdef _WIN32
# define _GDI32_
# ifdef _DLL
# undef _DLL
# endif
# include <windows.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl.h> // NB: wrong header for GL3+ core funcs
#include <OpenGL/glext.h>
#else
#include <GL/gl.h>
#include <GL/glext.h> // gl.h may not include all extensions
#endif
#endif // _GL_STUB_H_
|