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.
27 lines
523 B
27 lines
523 B
#pragma once
|
|
|
|
#include <QOpenGLFunctions>
|
|
#include <QOpenGLWidget>
|
|
#include <QTimer>
|
|
|
|
#include "ui/ui.hpp"
|
|
|
|
// 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);
|
|
};
|
|
|