]> git.tdb.fi Git - libs/gl.git/blobdiff - source/postprocessor.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / postprocessor.h
diff --git a/source/postprocessor.h b/source/postprocessor.h
deleted file mode 100644 (file)
index daaf434..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef MSP_GL_POSTPROCESSOR_H_
-#define MSP_GL_POSTPROCESSOR_H_
-
-#include <msp/datafile/objectloader.h>
-
-namespace Msp {
-namespace GL {
-
-class Mesh;
-class Renderer;
-class Shader;
-class Texture2D;
-
-/**
-Base class for post-processing effects.  Post-processors receive the contents
-of the entire framebuffer as a texture and render it back, altering it in the
-process.
-*/
-class PostProcessor
-{
-public:
-       struct Template
-       {
-               class Loader: public Msp::DataFile::ObjectLoader<Template>
-               {
-               public:
-                       Loader(Template &);
-               };
-
-               unsigned size_divisor;
-
-               Template();
-               virtual ~Template() { }
-
-               virtual PostProcessor *create(unsigned, unsigned) const = 0;
-       };
-
-private:
-       static WeakPtr<Mesh> fullscreen_quad;
-
-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<Mesh> get_fullscreen_quad();
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif