X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpostprocessor.h;fp=source%2Fpostprocessor.h;h=e40d80438a5a556d55713b98aa32f296d9482798;hb=119d9819ac9e9a8d274d2410beffe54e470485a3;hp=0000000000000000000000000000000000000000;hpb=d653d25b548070c688e40c052730d63345ce70c9;p=libs%2Fgl.git diff --git a/source/postprocessor.h b/source/postprocessor.h new file mode 100644 index 00000000..e40d8043 --- /dev/null +++ b/source/postprocessor.h @@ -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