2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef GLWIDGET_H
|
|
|
|
#define GLWIDGET_H
|
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
#include <QOpenGLWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
//! [0]
|
|
|
|
class Helper;
|
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
class GLWidget : public QOpenGLWidget
|
2011-04-27 10:05:43 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
GLWidget(Helper *helper, QWidget *parent);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void animate();
|
|
|
|
|
|
|
|
protected:
|
2016-06-15 08:12:35 +00:00
|
|
|
void paintEvent(QPaintEvent *event) override;
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Helper *helper;
|
|
|
|
int elapsed;
|
|
|
|
};
|
|
|
|
//! [0]
|
|
|
|
|
|
|
|
#endif
|