X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Fsequence.cpp;fp=source%2Frender%2Fsequence.cpp;h=d5b3ae94f9634a827865d9cdec0c11d2224fbb22;hp=e953b4d6925944b10d872301ef35667a7904f857;hb=31ae3e3c4a28ac2ec97cc3efaa25adbf1511aadc;hpb=d6122b75b00c0889a54536b5cea971d08184af8f diff --git a/source/render/sequence.cpp b/source/render/sequence.cpp index e953b4d6..d5b3ae94 100644 --- a/source/render/sequence.cpp +++ b/source/render/sequence.cpp @@ -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;