]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/colorcurve.h
Cosmetic fixes
[libs/gl.git] / source / effects / colorcurve.h
index 3f65b04916897c6d85bde7ec4f33fece160a3cd1..ee19a56f3835fadb225b56e48016d4f23b272f1a 100644 (file)
@@ -5,7 +5,6 @@
 #include "program.h"
 #include "programdata.h"
 #include "texture1d.h"
-#include "texturing.h"
 
 namespace Msp {
 namespace GL {
@@ -41,26 +40,27 @@ public:
 
                Template();
 
-               virtual ColorCurve *create(unsigned, unsigned) const;
+               virtual ColorCurve *create(Resources &, unsigned, unsigned) const;
        };
 
 private:
-       Program shprog;
+       const Program &shprog;
        ProgramData shdata;
        Texture1D curve;
-       Texturing texturing;
-       RefPtr<Mesh> quad;
-       RefPtr<Sampler> linear_sampler;
-       RefPtr<Sampler> nearest_sampler;
+       const Mesh &quad;
+       const Sampler &linear_sampler;
+       const Sampler &nearest_sampler;
 
 public:
-       ColorCurve();
+       ColorCurve(Resources &);
 
        /** 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