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.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drone.hh') diff --git a/src/drone.hh b/src/drone.hh index 6c43cc1..873bb27 100644 --- a/src/drone.hh +++ b/src/drone.hh @@ -20,7 +20,6 @@ class Drone { static bool mesh_initialized; QVector waypoints; - int mesh_id; QVector3D pos; int id; @@ -29,8 +28,9 @@ public: Drone(const QJsonObject &json); const QVector getWaypoints() const; void setTo(int frame); - QVector3D getPos() const; + const QVector3D getPos() const; int getId() const; + const OpenGLMesh *getMesh() const; }; -- cgit v1.2.3-70-g09d2