X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fcolorcurve.h;h=3ccfbf76b00d8c99493d63394ee2e59dad796fdc;hb=cd5f37b066352119cf92d53d0001af7ff99be437;hp=e34834aa4e72bf83311b8b9bc41fd657c1d2ba83;hpb=6f39983060a27634c012f66c82fea0d09fea9774;p=libs%2Fgl.git diff --git a/source/effects/colorcurve.h b/source/effects/colorcurve.h index e34834aa..3ccfbf76 100644 --- a/source/effects/colorcurve.h +++ b/source/effects/colorcurve.h @@ -40,7 +40,7 @@ public: Template(); - virtual ColorCurve *create(Resources &, unsigned, unsigned) const; + virtual ColorCurve *create(unsigned, unsigned) const; }; private: @@ -52,13 +52,15 @@ 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. */ void set_exposure_adjust(float); - /** Sets the exponent of the */ + /** Sets the exponent of the brightness response curve. It must be greater + than zero and at most one. A value of one gives a linear response; closer + to zero results in a more gentle curve. */ void set_brightness_response(float); /** Sets the gamma value used for mapping output colors. Allowed range is @@ -73,6 +75,8 @@ public: void set_linear(); virtual void render(Renderer &, const Texture2D &, const Texture2D &); + + virtual void set_debug_name(const std::string &); }; } // namespace GL