X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fsequence.h;h=cc4b6963b017ce98b2250597d2f02c8c55f67988;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hp=cfd14942e9de044bd5e33af8dc99e43470caf96d;hpb=006bdb4f8660098fc524dcca80b24c943c65b249;p=libs%2Fgl.git diff --git a/source/render/sequence.h b/source/render/sequence.h index cfd14942..cc4b6963 100644 --- a/source/render/sequence.h +++ b/source/render/sequence.h @@ -1,24 +1,20 @@ #ifndef MSP_GL_SEQUENCE_H_ #define MSP_GL_SEQUENCE_H_ -#include -#include +#include #include "blend.h" #include "depthtest.h" -#include "framebuffer.h" +#include "frameformat.h" #include "renderable.h" -#include "rendertarget.h" #include "stenciltest.h" -#include "texture2d.h" namespace Msp { namespace GL { -class Blend; -class Camera; class Clipping; class Lighting; class PostProcessor; +class RenderTarget; /** Top-level content class. Typically a Sequence is used as the content @@ -77,18 +73,18 @@ private: std::vector steps; std::vector postproc; - unsigned width; - unsigned height; + unsigned width = 0; + unsigned height = 0; FrameFormat target_format; - RenderTarget *target[2]; - RenderTarget *target_ms; - bool clear_enabled; + RenderTarget *target[2] = { 0, 0 }; + RenderTarget *target_ms = 0; + bool clear_enabled = false; std::vector clear_colors; - float clear_depth; - int clear_stencil; + float clear_depth = 1.0f; + int clear_stencil = 0; public: - Sequence(); + Sequence() = default; Sequence(unsigned, unsigned, const FrameFormat &); ~Sequence();