From 523c854119b40a6b603c5980420c3c923999ffd4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 20 Oct 2021 16:02:05 +0300 Subject: [PATCH] Add debug names to things in viewer --- tools/viewer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/viewer.cpp b/tools/viewer.cpp index 666372c3..fde5b8d4 100644 --- a/tools/viewer.cpp +++ b/tools/viewer.cpp @@ -204,6 +204,7 @@ Viewer::Viewer(int argc, char **argv): { GL::SequenceTemplate *tmpl = load(opts.renderable_name); GL::SequenceBuilder bld(*tmpl); + bld.set_debug_name(FS::basename(opts.renderable_name)); sequence = bld.build(view); } else @@ -229,12 +230,14 @@ Viewer::Viewer(int argc, char **argv): light.set_direction(GL::Vector3(0, 0, -1)); lighting.attach(light); + camera.set_debug_name("Camera"); camera.set_up_direction(GL::Vector3(0, 0, 1)); update_camera(); if(!sequence) { sequence = new GL::Sequence(); + sequence->set_debug_name("Sequence"); GL::Sequence::Step &step = sequence->add_step(0, *renderable); step.set_lighting(&lighting); step.set_depth_test(GL::LEQUAL); -- 2.43.0