X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fcolorcurve.h;h=01a7d35dcb37eecfebc9fb1e3df8fc6c5b57b21f;hb=5a01404e40717c6c2cc389ed8357713e1f216f07;hp=ee19a56f3835fadb225b56e48016d4f23b272f1a;hpb=55e3f2d494d939280a4ea48676fd17ca2342b457;p=libs%2Fgl.git diff --git a/source/effects/colorcurve.h b/source/effects/colorcurve.h index ee19a56f..01a7d35d 100644 --- a/source/effects/colorcurve.h +++ b/source/effects/colorcurve.h @@ -2,13 +2,14 @@ #define MSP_GL_COLORCURVE_H_ #include "postprocessor.h" -#include "program.h" #include "programdata.h" #include "texture1d.h" namespace Msp { namespace GL { +class Program; + /** Processes oversaturated colors to preserve hues. When one color component exceeds 1.0, the overflow is distributed to the other components, scaling the @@ -40,7 +41,7 @@ public: Template(); - virtual ColorCurve *create(Resources &, unsigned, unsigned) const; + virtual ColorCurve *create(unsigned, unsigned) const; }; private: @@ -52,7 +53,7 @@ private: const Sampler &nearest_sampler; public: - ColorCurve(Resources &); + ColorCurve(); /** Set exposure adjustment in EV units. Positive values brighten the image, negative values darken it. Zero is neutral. */ @@ -75,6 +76,8 @@ public: void set_linear(); virtual void render(Renderer &, const Texture2D &, const Texture2D &); + + virtual void set_debug_name(const std::string &); }; } // namespace GL