From 4a92c1f31d97ef38a04ee4d41572b2113f85fcb9 Mon Sep 17 00:00:00 2001 From: skyjake Date: Tue, 16 Apr 2013 18:47:40 +0300 Subject: [PATCH] libgui: Added a header for OpenGL (ES) 2 Includes all the needed headers in order to use OpenGL (ES) 2 on the current platform. --- doomsday/libgui/include/de/gui/glbuffer.h | 2 +- doomsday/libgui/include/de/gui/opengl.h | 28 +++++++++++++++++++++++ doomsday/libgui/libgui.pro | 1 + doomsday/libgui/src/canvas.cpp | 2 +- 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 doomsday/libgui/include/de/gui/opengl.h diff --git a/doomsday/libgui/include/de/gui/glbuffer.h b/doomsday/libgui/include/de/gui/glbuffer.h index ced19d57e9..2de21d2680 100644 --- a/doomsday/libgui/include/de/gui/glbuffer.h +++ b/doomsday/libgui/include/de/gui/glbuffer.h @@ -21,10 +21,10 @@ #include #include -#include #include #include "libgui.h" +#include "opengl.h" namespace de { diff --git a/doomsday/libgui/include/de/gui/opengl.h b/doomsday/libgui/include/de/gui/opengl.h new file mode 100644 index 0000000000..4fd0702608 --- /dev/null +++ b/doomsday/libgui/include/de/gui/opengl.h @@ -0,0 +1,28 @@ +/** @file opengl.h Headers for OpenGL (ES) 2. + * + * @authors Copyright (c) 2013 Jaakko Keränen + * + * @par License + * GPL: http://www.gnu.org/licenses/gpl.html + * + * 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 2 of the License, or (at your + * option) any later version. This program is distributed in the hope that it + * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + * Public License for more details. You should have received a copy of the GNU + * General Public License along with this program; if not, see: + * http://www.gnu.org/licenses + */ + +#ifndef LIBGUI_SYSTEM_OPENGL_H +#define LIBGUI_SYSTEM_OPENGL_H + +#include + +#ifdef MACOSX +# include +#endif + +#endif // LIBGUI_SYSTEM_OPENGL_H diff --git a/doomsday/libgui/libgui.pro b/doomsday/libgui/libgui.pro index fa085234ad..cfae4624cd 100644 --- a/doomsday/libgui/libgui.pro +++ b/doomsday/libgui/libgui.pro @@ -78,6 +78,7 @@ HEADERS += \ include/de/gui/keyeventsource.h \ include/de/gui/libgui.h \ include/de/gui/mouseeventsource.h \ + include/de/gui/opengl.h \ include/de/gui/persistentcanvaswindow.h # Sources and private headers. diff --git a/doomsday/libgui/src/canvas.cpp b/doomsday/libgui/src/canvas.cpp index 19c42f64f7..7e679c4189 100644 --- a/doomsday/libgui/src/canvas.cpp +++ b/doomsday/libgui/src/canvas.cpp @@ -19,6 +19,7 @@ #include "de/Canvas" #include "de/CanvasWindow" +#include "de/gui/opengl.h" #include #include @@ -30,7 +31,6 @@ #include #include #include -#include #include #include #include