2021-12-26 21:19:38 +01:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2013-05-22 23:07:07 +02:00
|
|
|
*
|
2021-12-26 21:19:38 +01:00
|
|
|
* ScummVM is the legal property of its developers, whose names
|
2013-05-22 23:07:07 +02:00
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
2021-12-26 18:47:58 +01:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-04-05 18:18:42 +02:00
|
|
|
*
|
2013-05-22 23:07:07 +02:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2021-12-26 21:19:38 +01:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2013-05-22 23:07:07 +02:00
|
|
|
* GNU General Public License for more details.
|
2014-04-05 18:18:42 +02:00
|
|
|
*
|
2013-05-22 23:07:07 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2013-05-22 23:07:07 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-01-09 08:32:42 +01:00
|
|
|
#ifndef GRAPHICS_OPENGL_SYSTEM_HEADERS_H
|
|
|
|
#define GRAPHICS_OPENGL_SYSTEM_HEADERS_H
|
2013-05-22 23:07:07 +02:00
|
|
|
|
|
|
|
#include "common/scummsys.h"
|
|
|
|
|
|
|
|
#ifdef USE_GLES2
|
|
|
|
|
|
|
|
#define GL_GLEXT_PROTOTYPES
|
|
|
|
#ifdef IPHONE
|
|
|
|
#include <OpenGLES/ES2/gl.h>
|
|
|
|
#include <OpenGLES/ES2/glext.h>
|
|
|
|
#else
|
|
|
|
#include <GLES2/gl2.h>
|
|
|
|
#include <GLES2/gl2ext.h>
|
|
|
|
#endif
|
|
|
|
#undef GL_GLEXT_PROTOTYPES
|
|
|
|
|
|
|
|
#ifndef GL_BGRA
|
|
|
|
# define GL_BGRA GL_BGRA_EXT
|
|
|
|
#endif
|
|
|
|
|
2016-01-09 08:22:26 +01:00
|
|
|
#if !defined(GL_UNPACK_ROW_LENGTH)
|
|
|
|
// The Android SDK does not declare GL_UNPACK_ROW_LENGTH_EXT
|
|
|
|
#define GL_UNPACK_ROW_LENGTH 0x0CF2
|
|
|
|
#endif
|
|
|
|
|
2021-06-19 13:58:31 +01:00
|
|
|
#if !defined(GL_MAX_SAMPLES)
|
|
|
|
// The Android SDK and SDL1 don't declare GL_MAX_SAMPLES
|
|
|
|
#define GL_MAX_SAMPLES 0x8D57
|
2013-05-22 23:07:07 +02:00
|
|
|
#endif
|
|
|
|
|
2021-06-19 13:58:31 +01:00
|
|
|
#else
|
|
|
|
#define USE_GLAD
|
|
|
|
#include "graphics/opengl/glad.h"
|
2013-05-22 23:07:07 +02:00
|
|
|
#endif
|
2016-06-12 20:08:05 +02:00
|
|
|
|
|
|
|
#endif
|