mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-30 03:23:52 +08:00
9a827fea20
* c++ cleanup: standardize file extensions to .cc and .h * cleanup files_common old-commit-hash: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
28 lines
521 B
C++
28 lines
521 B
C++
#pragma once
|
|
|
|
#include <QOpenGLFunctions>
|
|
#include <QOpenGLWidget>
|
|
#include <QTimer>
|
|
|
|
#include "ui/ui.h"
|
|
|
|
// 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);
|
|
};
|