mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-28 15:22:27 +00:00
Use SDL_opengl.h
That already contains an up to date glext.h.
This commit is contained in:
parent
f54253d966
commit
d2b2285345
2 changed files with 1 additions and 5958 deletions
5919
renderer/glext.h
5919
renderer/glext.h
File diff suppressed because it is too large
Load diff
|
@ -32,45 +32,7 @@ If you have questions concerning this license or the applicable additional terms
|
||||||
#ifndef __QGL_H__
|
#ifndef __QGL_H__
|
||||||
#define __QGL_H__
|
#define __QGL_H__
|
||||||
|
|
||||||
#if defined( _WIN32 )
|
#include <SDL_opengl.h>
|
||||||
|
|
||||||
#include <GL/gl.h>
|
|
||||||
|
|
||||||
#elif defined( MACOS_X )
|
|
||||||
|
|
||||||
// magic flag to keep tiger gl.h from loading glext.h
|
|
||||||
#define GL_GLEXT_LEGACY
|
|
||||||
#include <OpenGL/gl.h>
|
|
||||||
|
|
||||||
#elif defined( __unix__ )
|
|
||||||
|
|
||||||
// using our local glext.h
|
|
||||||
// http://oss.sgi.com/projects/ogl-sample/ABI/
|
|
||||||
#define GL_GLEXT_LEGACY
|
|
||||||
#define GLX_GLXEXT_LEGACY
|
|
||||||
#include <GL/gl.h>
|
|
||||||
#include <GL/glx.h>
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <gl.h>
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef APIENTRY
|
|
||||||
#define APIENTRY
|
|
||||||
#endif
|
|
||||||
#ifndef WINAPI
|
|
||||||
#define WINAPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// only use local glext.h if we are not using the system one already
|
|
||||||
// http://oss.sgi.com/projects/ogl-sample/ABI/
|
|
||||||
#ifndef GL_GLEXT_VERSION
|
|
||||||
|
|
||||||
#include "glext.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef void (*GLExtension_t)(void);
|
typedef void (*GLExtension_t)(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue