X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbloom.h;h=9f1d93dcece4174c0912a8671bc0e98b2bb793b5;hb=ae9abd6be3e556d0a202cc5ab05668da715382c9;hp=f930f1cd20449d883e194e9654cbc8a86350c087;hpb=89451c28c2c3fcd7c1cedbe136b5f19ef9347d7c;p=libs%2Fgl.git diff --git a/source/bloom.h b/source/bloom.h index f930f1cd..9f1d93dc 100644 --- a/source/bloom.h +++ b/source/bloom.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_BLOOM_H_ #define MSP_GL_BLOOM_H_ @@ -30,14 +23,15 @@ a blur filter. class Bloom: public PostProcessor { private: - Framebuffer fbo; + Framebuffer fbo[2]; Texture2D tex[2]; Program blur_shader; + ProgramData blur_shdata_common; ProgramData blur_shdata[2]; Program combine_shader; ProgramData combine_shdata; Texturing combine_texturing; - Mesh quad; + const Mesh &quad; public: Bloom(unsigned, unsigned);