X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fpostprocessor.h;h=8b2884acf6a360953f2e0a63ddeec2d44a64e689;hp=c107d885f658e028522fdb0fe463bbd755d60d1d;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266 diff --git a/source/effects/postprocessor.h b/source/effects/postprocessor.h index c107d885..8b2884ac 100644 --- a/source/effects/postprocessor.h +++ b/source/effects/postprocessor.h @@ -9,7 +9,6 @@ namespace GL { class Mesh; class Renderer; class Sampler; -class Shader; class Texture2D; /** @@ -28,36 +27,22 @@ public: Loader(Template &); }; - unsigned size_divisor; + unsigned size_divisor = 1; - Template(); - virtual ~Template() { } + virtual ~Template() = default; virtual PostProcessor *create(unsigned, unsigned) const = 0; }; -private: - static WeakPtr fullscreen_quad; - static WeakPtr nearest_sampler; - static WeakPtr linear_sampler; - protected: PostProcessor() { } public: virtual ~PostProcessor() { } /// Renders the effect. - virtual void render(const Texture2D &, const Texture2D &) { } - - virtual void render(Renderer &, const Texture2D &, const Texture2D &); - -protected: - /** Returns a mesh consisting of a single quad, covering the entire screen. - The vertices are in normalized device coordinates. */ - static RefPtr get_fullscreen_quad(); + virtual void render(Renderer &, const Texture2D &, const Texture2D &) = 0; - static RefPtr get_nearest_sampler(); - static RefPtr get_linear_sampler(); + virtual void set_debug_name(const std::string &) = 0; }; } // namespace GL