From 928d45c3fbfb6b00d8e0b79b63934ebd080b9456 Mon Sep 17 00:00:00 2001 From: ccolin Date: Sun, 3 Jan 2021 12:30:16 +0100 Subject: refactor drawing code --- src/drone_controller.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/drone_controller.hh') 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 #include +#include -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); -- cgit v1.2.3-70-g09d2