Qt 5.10 Book Examples
chapter23
OGLQuad
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
};
OGLQuad::initializeGL
virtual void initializeGL()
Definition:
OGLQuad.cpp:20
OGLQuad::OGLQuad
OGLQuad(QWidget *pwgt=0)
Definition:
OGLQuad.cpp:15
OGLQuad
Definition:
OGLQuad.h:16
OGLQuad::paintGL
virtual void paintGL()
Definition:
OGLQuad.cpp:37
OGLQuad::resizeGL
virtual void resizeGL(int nWidth, int nHeight)
Definition:
OGLQuad.cpp:28
Generated by
1.8.14