X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fpostprocessor.h;h=ee169e79470eedded9a31436581437183e04fcd1;hb=6065f6622cc275dc0b20baaf7c267e71169d18f3;hp=c107d885f658e028522fdb0fe463bbd755d60d1d;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/effects/postprocessor.h b/source/effects/postprocessor.h index c107d885..ee169e79 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; /** @@ -36,28 +35,15 @@ public: 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