2001-10-25 05:37:32 +00:00
|
|
|
/*
|
2011-04-08 13:03:26 -07:00
|
|
|
Simple DirectMedia Layer
|
2014-02-02 00:53:27 -08:00
|
|
|
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
|
2011-04-08 13:03:26 -07:00
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
2001-10-25 05:37:32 +00:00
|
|
|
*/
|
|
|
|
|
2009-10-19 13:31:58 +00:00
|
|
|
/**
|
|
|
|
* \file SDL_opengl.h
|
2013-05-18 14:17:52 -07:00
|
|
|
*
|
2009-10-19 13:31:58 +00:00
|
|
|
* This is a simple file to encapsulate the OpenGL API headers.
|
|
|
|
*/
|
2001-10-25 05:37:32 +00:00
|
|
|
|
2009-09-05 07:33:54 +00:00
|
|
|
#ifndef _SDL_opengl_h
|
|
|
|
#define _SDL_opengl_h
|
|
|
|
|
2006-02-21 08:46:50 +00:00
|
|
|
#include "SDL_config.h"
|
|
|
|
|
2011-10-31 05:56:58 -04:00
|
|
|
#ifndef __IPHONEOS__
|
|
|
|
|
2011-01-24 15:46:11 -08:00
|
|
|
#ifdef __WIN32__
|
2014-04-26 12:38:35 -07:00
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
2001-10-25 05:37:32 +00:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
2014-04-26 12:38:35 -07:00
|
|
|
#endif
|
2003-09-28 18:31:07 +00:00
|
|
|
#ifndef NOMINMAX
|
2006-07-10 21:04:37 +00:00
|
|
|
#define NOMINMAX /* Don't defined min() and max() */
|
2003-09-28 18:31:07 +00:00
|
|
|
#endif
|
2001-10-25 05:37:32 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
2011-09-18 03:52:08 +00:00
|
|
|
|
2010-12-01 12:02:52 -08:00
|
|
|
#ifdef __glext_h_
|
|
|
|
/* Someone has already included glext.h */
|
|
|
|
#define NO_SDL_GLEXT
|
2014-06-15 17:37:35 -07:00
|
|
|
#else
|
|
|
|
#define _SDL_CLEAR_GLEXT_HEADERGUARD
|
2006-07-10 21:04:37 +00:00
|
|
|
#define __glext_h_ /* Don't let gl.h include glext.h */
|
2004-08-20 22:32:05 +00:00
|
|
|
#endif
|
2006-02-24 09:57:14 +00:00
|
|
|
#if defined(__MACOSX__)
|
2006-07-10 21:04:37 +00:00
|
|
|
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
|
2009-09-05 07:33:54 +00:00
|
|
|
#define __X_GL_H
|
2001-10-25 05:37:32 +00:00
|
|
|
#else
|
2006-07-10 21:04:37 +00:00
|
|
|
#include <GL/gl.h> /* Header File For The OpenGL Library */
|
2004-08-20 22:32:05 +00:00
|
|
|
#endif
|
2014-06-15 17:37:35 -07:00
|
|
|
#ifdef _SDL_CLEAR_GLEXT_HEADERGUARD
|
2001-10-25 05:37:32 +00:00
|
|
|
#undef __glext_h_
|
|
|
|
#endif
|
|
|
|
|
2009-10-19 13:31:58 +00:00
|
|
|
/**
|
|
|
|
* \file SDL_opengl.h
|
2013-05-18 14:17:52 -07:00
|
|
|
*
|
2009-10-19 13:31:58 +00:00
|
|
|
* This file is included because glext.h is not available on some systems.
|
|
|
|
* If you don't want this version included, simply define ::NO_SDL_GLEXT.
|
2013-05-18 14:17:52 -07:00
|
|
|
*
|
2009-10-19 13:31:58 +00:00
|
|
|
* The latest version is available from:
|
2013-05-18 14:17:52 -07:00
|
|
|
* http://www.opengl.org/registry/
|
2009-10-19 13:31:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \def NO_SDL_GLEXT
|
2013-05-18 14:17:52 -07:00
|
|
|
*
|
|
|
|
* Define this if you have your own version of glext.h and want to disable the
|
2009-10-19 13:31:58 +00:00
|
|
|
* version included in SDL_opengl.h.
|
2001-10-25 05:37:32 +00:00
|
|
|
*/
|
2009-10-19 13:31:58 +00:00
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
#if !defined(NO_SDL_GLEXT) && !defined(GL_GLEXT_LEGACY)
|
2014-06-04 01:21:00 -07:00
|
|
|
#include "SDL_opengl_glext.h"
|
2001-10-25 05:37:32 +00:00
|
|
|
#endif /* NO_SDL_GLEXT */
|
2009-09-05 07:33:54 +00:00
|
|
|
|
2011-10-31 05:56:58 -04:00
|
|
|
#endif /* !__IPHONEOS__ */
|
|
|
|
|
2009-09-05 07:33:54 +00:00
|
|
|
#endif /* _SDL_opengl_h */
|
|
|
|
|
|
|
|
/* vi: set ts=4 sw=4 expandtab: */
|