diff options
author | ccolin | 2021-01-03 22:39:23 +0100 |
---|---|---|
committer | ccolin | 2021-01-03 22:39:23 +0100 |
commit | e3cb8532fcc863897b6aa9430b0ab786f421cb95 (patch) | |
tree | f3ff3d2408021b124f7bb2a0995f626d0db3f2ac /src/drone_controller.cc | |
parent | cbf29fc087179fbda1527d3c4cea82c2b8e9f695 (diff) |
rename "draw support lines" to "draw guides"
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(); } |