Stellarium 0.15.2
GLFuncs.hpp
1 /*
2  * Stellarium Scenery3d Plug-in
3  *
4  * Copyright (C) 2014 Simon Parzer, Peter Neubauer, Georg Zotti, Andrei Borza, Florian Schaukowitsch
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
19  */
20 
21 #ifndef _GLFUNCS_HPP_
22 #define _GLFUNCS_HPP_
23 
24 #include <QOpenGLContext>
25 #include <QOpenGLFunctions_1_0>
26 
27 #ifndef QT_OPENGL_ES_2
28 class GLExtFuncs : public QOpenGLFunctions_1_0
32 {
33 public:
35  PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture;
36 
37  void init(QOpenGLContext* ctx)
38  {
39  glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)ctx->getProcAddress("glFramebufferTexture");
40 
41  if(!ctx->isOpenGLES())
42  initializeOpenGLFunctions();
43  }
44 };
45 
46 extern GLExtFuncs* glExtFuncs;
47 #endif
48 
49 #endif
PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture
Since 3.2.
Definition: GLFuncs.hpp:35
Defines some OpenGL functions not resolved through StelOpenGL (which only contains base OpenGL ES2 fu...
Definition: GLFuncs.hpp:31