]> git.tdb.fi Git - libs/gl.git/blobdiff - source/colorcurve.h
Use Renderer for rendering PostProcessors
[libs/gl.git] / source / colorcurve.h
index f66ff976d7a0d06dc020980239b9adcf0676d008..2b854bec8b6f8ac5392f010e64a06b5269b83415 100644 (file)
@@ -1,10 +1,11 @@
-#ifndef COLORCURVE_H_
-#define COLORCURVE_H_
+#ifndef MSP_GL_COLORCURVE_H_
+#define MSP_GL_COLORCURVE_H_
 
 #include "postprocessor.h"
 #include "program.h"
 #include "programdata.h"
 #include "texture1d.h"
+#include "texturing.h"
 
 namespace Msp {
 namespace GL {
@@ -24,6 +25,7 @@ private:
        Program shprog;
        ProgramData shdata;
        Texture1D curve;
+       Texturing texturing;
        const Mesh &quad;
 
 public:
@@ -48,7 +50,7 @@ public:
        /// Sets output mapping to linear.  This is equivalent to set_gamma(1).
        void set_linear();
 
-       virtual void render(const Texture2D &, const Texture2D &);
+       virtual void render(Renderer &, const Texture2D &, const Texture2D &);
 };
 
 } // namespace GL