X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fpostprocessor.h;h=06e03c3f7bee415d5df42a313763d7a15ac4c880;hb=003890aeda3e2bb444d9560a8dd8f6aef924a1ee;hp=c107d885f658e028522fdb0fe463bbd755d60d1d;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/effects/postprocessor.h b/source/effects/postprocessor.h index c107d885..06e03c3f 100644 --- a/source/effects/postprocessor.h +++ b/source/effects/postprocessor.h @@ -36,28 +36,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