]> git.tdb.fi Git - libs/gl.git/blobdiff - tools/viewer.cpp
Rename RenderPass to RenderMethod
[libs/gl.git] / tools / viewer.cpp
index 2c950e18e2acc22714ee9d3030ed7467371a0fe0..a1703ede17d5621b98954db1deef56e57132ab86 100644 (file)
@@ -177,7 +177,7 @@ Viewer::Viewer(int argc, char **argv):
 
                object = new GL::Object;
                GL::Technique *tech = new GL::Technique;
-               tech->add_pass(0);
+               tech->add_method(0);
                object->set_mesh(mesh);
                object->set_technique(tech);
                renderable = object;
@@ -234,7 +234,7 @@ Viewer::Viewer(int argc, char **argv):
 
        if(!sequence)
        {
-               sequence = new GL::Sequence(view);
+               sequence = new GL::Sequence();
                GL::Sequence::Step &step = sequence->add_step(0, *renderable);
                step.set_lighting(&lighting);
                step.set_depth_test(GL::LEQUAL);