diff options
Diffstat (limited to 'src/drone_controller.cc')
-rw-r--r-- | src/drone_controller.cc | 11 |
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(); } |