X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fsequence.cpp;h=f2a88a51f760ab6ccc6fc9e5c17062ab460824ae;hb=c8520aa336e92f2eaf9a38c3430c608520a90324;hp=5a3afa452e2e9235ade6e0cfc6558073672fa23e;hpb=1fba50491957cdd28cff4082a32764691d8ec473;p=libs%2Fgl.git diff --git a/source/render/sequence.cpp b/source/render/sequence.cpp index 5a3afa45..f2a88a51 100644 --- a/source/render/sequence.cpp +++ b/source/render/sequence.cpp @@ -1,10 +1,9 @@ -#include -#include "blend.h" +#include #include "error.h" -#include "framebuffer.h" #include "lighting.h" #include "postprocessor.h" #include "renderer.h" +#include "rendertarget.h" #include "sequence.h" #include "texture2d.h" @@ -13,24 +12,10 @@ using namespace std; namespace Msp { namespace GL { -Sequence::Sequence(): - width(0), - height(0), - target{0, 0}, - target_ms(0), - clear_enabled(false), - clear_depth(1.0f), - clear_stencil(0) -{ } - Sequence::Sequence(unsigned w, unsigned h, const FrameFormat &f): width(w), height(h), - target_format(f), - target_ms(0), - clear_enabled(false), - clear_depth(1.0f), - clear_stencil(0) + target_format(f) { if(target_format.empty()) throw invalid_argument("Sequence::Sequence");