Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AboutGL.h
Go to the documentation of this file.
1 /* Copyright (c) 2014-2015 "Omnidome" by cr8tr
2  * Dome Mapping Projection Software (http://omnido.me).
3  * Omnidome was created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo)
4  *
5  * This file is part of Omnidome.
6  *
7  * Omnidome is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Affero General Public License for more details.
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef OMNI_UI_ABOUTGL_H_
21 #define OMNI_UI_ABOUTGL_H_
22 
23 #include <memory>
24 #include <QOpenGLWidget>
25 #include <QOpenGLShaderProgram>
26 #include <QOpenGLTexture>
28 #include <omni/ui/GLView.h>
29 
30 namespace omni {
31  namespace ui {
32  class AboutGL : public GLView {
33  Q_OBJECT
34 
35  public:
36  explicit AboutGL(QWidget *_parent = nullptr);
37  ~AboutGL();
38 
39  protected:
40  void mousePressEvent(QMouseEvent *);
41 
42  void resizeGL(int _w,
43  int _h);
44  void paintGL();
45  double startTime_;
46 
47  private:
48  bool initialize();
49  ContextBoundPtr<QOpenGLShaderProgram> shader_;
50  ContextBoundPtr<QOpenGLTexture> tex_;
51  };
52  }
53 }
54 
55 #endif /* OMNI_UI_ABOUTGL_H_ */
ContextBoundPtr< QOpenGLTexture > tex_
Definition: AboutGL.h:50
void paintGL()
Paint GL routine.
Definition: AboutGL.cpp:105
~AboutGL()
Definition: AboutGL.cpp:52
Definition: AboutGL.h:32
void mousePressEvent(QMouseEvent *)
Mouse press event sets mouse position.
Definition: AboutGL.cpp:100
AboutGL(QWidget *_parent=nullptr)
Definition: AboutGL.cpp:39
void resizeGL(int _w, int _h)
Resize GL and viewport.
Definition: AboutGL.cpp:92
double startTime_
Definition: AboutGL.h:45
bool initialize()
Pure virtual function to initialize GL contents.
Definition: AboutGL.cpp:55
GLView for visualizing tunings or session Holds shared_ptr to session as data model.
Definition: GLView.h:35
ContextBoundPtr< QOpenGLShaderProgram > shader_
Definition: AboutGL.h:49