]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/colorcurve.h
Use default member initializers for simple types
[libs/gl.git] / source / effects / colorcurve.h
index f274bf06bde57040e7ae1f489fa6793d3f6560ac..5cebcb00835e818fe2b44a303928b2b502c149f4 100644 (file)
@@ -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
@@ -33,12 +34,10 @@ public:
                        void srgb();
                };
 
-               float exposure_adjust;
-               float brightness_response;
-               float gamma;
-               bool srgb;
-
-               Template();
+               float exposure_adjust = 0.0f;
+               float brightness_response = 0.4f;
+               float gamma = 1.0f;
+               bool srgb = false;
 
                virtual ColorCurve *create(unsigned, unsigned) const;
        };
@@ -75,6 +74,8 @@ public:
        void set_linear();
 
        virtual void render(Renderer &, const Texture2D &, const Texture2D &);
+
+       virtual void set_debug_name(const std::string &);
 };
 
 } // namespace GL