]> git.tdb.fi Git - libs/gl.git/blob - source/postprocessor.h
f835e5afafd75bbfac7568af9ca9ab68634754ea
[libs/gl.git] / source / postprocessor.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_POSTPROCESSOR_H_
9 #define MSP_GL_POSTPROCESSOR_H_
10
11 namespace Msp {
12 namespace GL {
13
14 class Texture2D;
15
16 /**
17 Base class for post-processing effects.
18 */
19 class PostProcessor
20 {
21 protected:
22         PostProcessor() { }
23 public:
24         virtual ~PostProcessor() { }
25
26         /**
27         Renders the effect.  Takes the source texture as a parameter.
28         */
29         virtual void render(const Texture2D &, const Texture2D &) = 0;
30 };
31
32 } // namespace GL
33 } // namespace Msp
34
35 #endif