1 #ifndef MSP_GL_POSTPROCESSOR_H_
2 #define MSP_GL_POSTPROCESSOR_H_
4 #include <msp/datafile/objectloader.h>
17 Base class for post-processing effects. Post-processors receive the contents
18 of the entire framebuffer as a texture and render it back, altering it in the
26 class Loader: public Msp::DataFile::ObjectLoader<Template>
32 unsigned size_divisor;
35 virtual ~Template() { }
37 virtual PostProcessor *create(Resources &, unsigned, unsigned) const = 0;
43 virtual ~PostProcessor() { }
45 /// Renders the effect.
46 virtual void render(const Texture2D &, const Texture2D &) { }
48 virtual void render(Renderer &, const Texture2D &, const Texture2D &);