Qt 5.10 Book Examples
OGLQuad.h
Go to the documentation of this file.
1 // ======================================================================
2 // OGLQuad.h
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #pragma once
12 
13 #include <QOpenGLWidget>
14 
15 // ======================================================================
16 class OGLQuad : public QOpenGLWidget {
17 protected:
18  virtual void initializeGL( );
19  virtual void resizeGL (int nWidth, int nHeight);
20  virtual void paintGL ( );
21 
22 public:
23  OGLQuad(QWidget* pwgt = 0);
24 };
virtual void initializeGL()
Definition: OGLQuad.cpp:20
OGLQuad(QWidget *pwgt=0)
Definition: OGLQuad.cpp:15
virtual void paintGL()
Definition: OGLQuad.cpp:37
virtual void resizeGL(int nWidth, int nHeight)
Definition: OGLQuad.cpp:28