]> git.tdb.fi Git - libs/gl.git/blobdiff - source/postprocessor.h
Add post-processing effect framework
[libs/gl.git] / source / postprocessor.h
diff --git a/source/postprocessor.h b/source/postprocessor.h
new file mode 100644 (file)
index 0000000..e40d804
--- /dev/null
@@ -0,0 +1,33 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GL_POSTPROCESSOR_H_
+#define MSP_GL_POSTPROCESSOR_H_
+
+namespace Msp {
+namespace GL {
+
+class Texture2D;
+
+/**
+Base class for post-processing effects.
+*/
+class PostProcessor
+{
+protected:
+       PostProcessor() { }
+public:
+       /**
+       Renders the effect.  Takes the source texture as a parameter.
+       */
+       virtual void render(const Texture2D &) =0;
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif