]> git.tdb.fi Git - libs/gl.git/blobdiff - source/colorcurve.h
Support BGR and BGRA as texture formats through swizzling
[libs/gl.git] / source / colorcurve.h
index 608af44888ce9edcc3030d135cac98abb3728772..d8697d837b26a689e78ef64be5a6e17d44c6c091 100644 (file)
@@ -21,6 +21,29 @@ space and converting to sRGB for display.
 */
 class ColorCurve: public PostProcessor
 {
+public:
+       struct Template: public PostProcessor::Template
+       {
+               class Loader: public DataFile::DerivedObjectLoader<Template, PostProcessor::Template::Loader>
+               {
+               public:
+                       Loader(Template &);
+
+               private:
+                       void gamma(float);
+                       void srgb();
+               };
+
+               float exposure_adjust;
+               float brightness_response;
+               float gamma;
+               bool srgb;
+
+               Template();
+
+               virtual ColorCurve *create(unsigned, unsigned) const;
+       };
+
 private:
        Program shprog;
        ProgramData shdata;
@@ -38,10 +61,6 @@ public:
        /** Sets the exponent of the */
        void set_brightness_response(float);
 
-       // Deprecated functions
-       void set_peak(float);
-       void set_brightness(float);
-
        /** Sets the gamma value used for mapping output colors.  Allowed range is
        from 0.1 to 10. */
        void set_gamma(float);