]> git.tdb.fi Git - libs/gl.git/blobdiff - source/bloom.h
Bind ProgramData to a Program upon construction
[libs/gl.git] / source / bloom.h
index b763809aca7422feba10f52be9f402f4a97f5962..2900175ff1f8ac6e34b52dfc994572aeaacbbe74 100644 (file)
@@ -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: