瀏覽代碼

Merge pull request #1315 from BruegelN/fix-105_Overlays

activate label rendering for tutorial 105 overlays.
Jérémie Dumas 6 年之前
父節點
當前提交
39dd969ce8
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;
   l2 << M(0) << ", " << M(1) << ", " << M(2);
   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
   // plugin to show text labels.