You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
521 B
28 lines
521 B
4 years ago
|
#pragma once
|
||
|
|
||
|
#include <QOpenGLFunctions>
|
||
|
#include <QOpenGLWidget>
|
||
|
#include <QTimer>
|
||
|
|
||
4 years ago
|
#include "ui/ui.h"
|
||
4 years ago
|
|
||
|
// container window for the NVG UI
|
||
|
class OnroadWindow : public QOpenGLWidget, protected QOpenGLFunctions {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
using QOpenGLWidget::QOpenGLWidget;
|
||
|
explicit OnroadWindow(QWidget* parent = 0) : QOpenGLWidget(parent) {};
|
||
|
~OnroadWindow();
|
||
|
|
||
|
protected:
|
||
|
void paintGL() override;
|
||
|
void initializeGL() override;
|
||
|
|
||
|
private:
|
||
|
double prev_draw_t = 0;
|
||
|
|
||
|
public slots:
|
||
|
void update(const UIState &s);
|
||
|
};
|