]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/sequence.cpp
Remove the View and Framebuffer constructors from Sequence
[libs/gl.git] / source / render / sequence.cpp
index e953b4d6925944b10d872301ef35667a7904f857..d5b3ae94f9634a827865d9cdec0c11d2224fbb22 100644 (file)
@@ -7,34 +7,17 @@
 #include "renderer.h"
 #include "sequence.h"
 #include "texture2d.h"
-#include "view.h"
 
 using namespace std;
 
 namespace Msp {
 namespace GL {
 
-Sequence::Sequence(unsigned w, unsigned h, const FrameFormat &f)
+Sequence::Sequence(unsigned w, unsigned h, const FrameFormat &f):
+       width(w),
+       height(h),
+       target_format(f)
 {
-       init(w, h, f);
-}
-
-Sequence::Sequence(const View &view, const FrameFormat &f)
-{
-       init(view.get_width(), view.get_height(), f);
-}
-
-Sequence::Sequence(const Framebuffer &fbo, const FrameFormat &f)
-{
-       init(fbo.get_width(), fbo.get_height(), f);
-}
-
-void Sequence::init(unsigned w, unsigned h, const FrameFormat &f)
-{
-       width = w;
-       height = h;
-       target_format = f;
-
        if(!target_format.empty())
        {
                FrameFormat postproc_fmt = target_format;