Browse Source

activate label rendering for tutorial 105 overlays.

BruegelN 6 years ago
parent
commit
02936bb200
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tutorial/105_Overlays/main.cpp

+ 2 - 0
tutorial/105_Overlays/main.cpp

@@ -67,6 +67,8 @@ int main(int argc, char *argv[])
   std::stringstream l2;
   std::stringstream l2;
   l2 << M(0) << ", " << M(1) << ", " << M(2);
   l2 << M(0) << ", " << M(1) << ", " << M(2);
   viewer.data().add_label(M,l2.str());
   viewer.data().add_label(M,l2.str());
+  // activate label rendering
+  viewer.data().show_labels = true;
 
 
   // Rendering of text labels is handled by ImGui, so we need to enable the ImGui
   // Rendering of text labels is handled by ImGui, so we need to enable the ImGui
   // plugin to show text labels.
   // plugin to show text labels.