mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
fdc234ed3b
Albeit, invisibly.
28 lines
647 B
C++
28 lines
647 B
C++
#ifndef SCANTARGETWIDGET_H
|
|
#define SCANTARGETWIDGET_H
|
|
|
|
#include <QOpenGLWidget>
|
|
|
|
#include "../../Outputs/OpenGL/ScanTarget.hpp"
|
|
|
|
class ScanTargetWidget : public QOpenGLWidget
|
|
{
|
|
public:
|
|
ScanTargetWidget(QWidget *parent = nullptr);
|
|
~ScanTargetWidget();
|
|
|
|
Outputs::Display::OpenGL::ScanTarget *getScanTarget();
|
|
|
|
protected:
|
|
void initializeGL() override;
|
|
void resizeGL(int w, int h) override;
|
|
void paintGL() override;
|
|
|
|
private:
|
|
// This should be created only once there's an OpenGL context. So it
|
|
// can't be done at creation time.4
|
|
std::unique_ptr<Outputs::Display::OpenGL::ScanTarget> scanTarget;
|
|
};
|
|
|
|
#endif // SCANTARGETWIDGET_H
|