]> git.tdb.fi Git - libs/gl.git/blobdiff - tools/viewer.cpp
Make the SL::Features factory functions more flexible
[libs/gl.git] / tools / viewer.cpp
index c54d7278c4cba0a23a4a935850a2eb25ead4d816..fde5b8d4e757d1defdf37d7149bf2d7776387769 100644 (file)
@@ -204,6 +204,7 @@ Viewer::Viewer(int argc, char **argv):
        {
                GL::SequenceTemplate *tmpl = load<GL::SequenceTemplate>(opts.renderable_name);
                GL::SequenceBuilder bld(*tmpl);
+               bld.set_debug_name(FS::basename(opts.renderable_name));
                sequence = bld.build(view);
        }
        else
@@ -229,16 +230,17 @@ 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);
-               step.set_blend(GL::Blend(GL::SRC_ALPHA, GL::ONE_MINUS_SRC_ALPHA));
        }
 
        view.set_content(sequence);