]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Add getter for Animation::looping
[libs/gl.git] / source / pipeline.cpp
index 037741d24e4e1bfa0372c09943c1509cfad5b115..53b51d7924bc91cfeb6b8c4e84ef6cf24134061a 100644 (file)
@@ -27,6 +27,11 @@ Pipeline::Pipeline(const View &view)
        init(view.get_width(), view.get_height());
 }
 
+Pipeline::Pipeline(const Framebuffer &fbo)
+{
+       init(fbo.get_width(), fbo.get_height());
+}
+
 void Pipeline::init(unsigned w, unsigned h)
 {
        camera = 0;
@@ -192,7 +197,7 @@ void Pipeline::render(Renderer &renderer, const Tag &tag) const
                return;
 
        const Framebuffer *out_fbo = Framebuffer::current();
-       // These is a no-ops but will ensure the related state gets restored
+       // These are no-ops but will ensure the related state gets restored
        BindRestore restore_fbo(out_fbo);
        BindRestore restore_depth_test(DepthTest::current());
        BindRestore restore_blend(Blend::current());