aboutsummaryrefslogtreecommitdiff
path: root/src/drone_controller.cc
diff options
context:
space:
mode:
authorccolin2021-01-03 22:39:23 +0100
committerccolin2021-01-03 22:39:23 +0100
commite3cb8532fcc863897b6aa9430b0ab786f421cb95 (patch)
treef3ff3d2408021b124f7bb2a0995f626d0db3f2ac /src/drone_controller.cc
parentcbf29fc087179fbda1527d3c4cea82c2b8e9f695 (diff)
rename "draw support lines" to "draw guides"
Diffstat (limited to 'src/drone_controller.cc')
-rw-r--r--src/drone_controller.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/drone_controller.cc b/src/drone_controller.cc
index ffac66f..2ad3ec8 100644
--- a/src/drone_controller.cc
+++ b/src/drone_controller.cc
@@ -76,7 +76,7 @@ void DroneController::drawTrajectory(QOpenGLExtraFunctions *f, const Drone &d) c
}
-void DroneController::drawSupportLine(QOpenGLExtraFunctions *f, const Drone &d) const {
+void DroneController::drawGuide(QOpenGLExtraFunctions *f, const Drone &d) const {
OpenGLWidget::instance->getLineProgram()->bind();
OpenGLWidget::instance->getLineProgram()->setUniformValue("color", .2, .2, .2);
GLfloat data[6] = {
@@ -114,8 +114,8 @@ void DroneController::draw(QOpenGLExtraFunctions *f) const {
if (draw_trajectories) {
drawTrajectory(f, d);
}
- if (draw_support_lines) {
- drawSupportLine(f, d);
+ if (draw_guides) {
+ drawGuide(f, d);
}
}
}
@@ -219,7 +219,8 @@ void DroneController::setDrawTrajectories(bool enable) {
OpenGLWidget::instance->update();
}
-void DroneController::setDrawSupportLines(bool enable) {
- draw_support_lines = enable;
+
+void DroneController::setDrawGuides(bool enable) {
+ draw_guides = enable;
OpenGLWidget::instance->update();
}