diff options
author | ccolin | 2021-01-03 12:30:16 +0100 |
---|---|---|
committer | ccolin | 2021-01-03 12:30:16 +0100 |
commit | 928d45c3fbfb6b00d8e0b79b63934ebd080b9456 (patch) | |
tree | 9e6b4f457d3c3130aa57b183f868e378e9810f5a /src/drone_controller.hh | |
parent | 8ad1cf1b89b8acae55e36d6bd4562dffd1bcc714 (diff) |
refactor drawing code
Diffstat (limited to 'src/drone_controller.hh')
-rw-r--r-- | src/drone_controller.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drone_controller.hh b/src/drone_controller.hh index 08dac42..bcf1a1a 100644 --- a/src/drone_controller.hh +++ b/src/drone_controller.hh @@ -3,11 +3,14 @@ #include "drone.hh" +#include "opengl_widget.hh" + #include <QJsonObject> #include <QTimer> +#include <QOpenGLExtraFunctions> -class DroneController : public QObject { +class DroneController : public QObject, public Painter { Q_OBJECT int framerate; @@ -22,6 +25,7 @@ class DroneController : public QObject { public: DroneController(const QJsonObject &json); int getDuration() const; + void draw(QOpenGLExtraFunctions *f) const; signals: void frameChanged(int frame); |