mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-26 22:27:06 +08:00
32 lines
472 B
C
32 lines
472 B
C
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||
|
|
||
|
#ifndef GLWIDGET_H
|
||
|
#define GLWIDGET_H
|
||
|
|
||
|
#include <QOpenGLWidget>
|
||
|
|
||
|
//! [0]
|
||
|
class Helper;
|
||
|
|
||
|
class GLWidget : public QOpenGLWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
GLWidget(Helper *helper, QWidget *parent);
|
||
|
|
||
|
public slots:
|
||
|
void animate();
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *event) override;
|
||
|
|
||
|
private:
|
||
|
Helper *helper;
|
||
|
int elapsed;
|
||
|
};
|
||
|
//! [0]
|
||
|
|
||
|
#endif
|