aboutsummaryrefslogtreecommitdiff
path: root/src/drone_controller.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/drone_controller.hh')
-rw-r--r--src/drone_controller.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drone_controller.hh b/src/drone_controller.hh
index bcf1a1a..de9385d 100644
--- a/src/drone_controller.hh
+++ b/src/drone_controller.hh
@@ -19,6 +19,12 @@ class DroneController : public QObject, public Painter {
QVector<Drone> drones;
QTimer timer;
bool paused = true;
+ bool draw_spheres = false;
+ double sphere_radius = 0;
+ QTimer sphere_timer;
+
+ static OpenGLMesh *sphere;
+ static const unsigned char sphere_neutral[];
static bool collides(const Drone &a, const Drone &b, double radius);
@@ -43,6 +49,7 @@ public slots:
void resume();
void seek(int frame);
void computeCollisions(double sphere_radius);
+ void displaySpheres(double sphere_radius);
};