From: Mikko Rasa Date: Wed, 20 Oct 2021 13:02:05 +0000 (+0300) Subject: Add debug names to things in viewer X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=523c854119b40a6b603c5980420c3c923999ffd4;p=libs%2Fgl.git Add debug names to things in viewer --- 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);