X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbloom.h;h=2900175ff1f8ac6e34b52dfc994572aeaacbbe74;hb=5028e8accde81677fc4a50c771b955cf324851b2;hp=c02604afc0a281a918076190433f6e15ae2e4f1d;hpb=119d9819ac9e9a8d274d2410beffe54e470485a3;p=libs%2Fgl.git diff --git a/source/bloom.h b/source/bloom.h index c02604af..2900175f 100644 --- a/source/bloom.h +++ b/source/bloom.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgl -Copyright © 2009 Mikko Rasa, Mikkosoft Productions +Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -12,6 +12,7 @@ Distributed under the LGPL #include "mesh.h" #include "postprocessor.h" #include "texture2d.h" +#include "texturing.h" #include "program.h" #include "programdata.h" @@ -32,9 +33,12 @@ private: Framebuffer fbo; Texture2D tex[2]; Program blur_shader; - ProgramData blur_shdata[2]; + ProgramData blur_shdata_common; + ProgramData blur_shdata_x; + ProgramData blur_shdata_y; Program combine_shader; ProgramData combine_shdata; + Texturing combine_texturing; Mesh quad; public: @@ -48,7 +52,7 @@ public: values mean more blurriness. */ void set_strength(float); - virtual void render(const Texture2D &); + virtual void render(const Texture2D &, const Texture2D &); }; } // namespace GL