]> git.sesse.net Git - movit/blobdiff - gamma_expansion_effect.h
Make the internal effects private to EffectChain.
[movit] / gamma_expansion_effect.h
index ce999902f7be24b4ddace89ea12384cb7dbf5def..043731baf15ef48c8812d1ec6fb6e5234a5b87a3 100644 (file)
 #define EXPANSION_CURVE_SIZE 256
 
 class GammaExpansionEffect : public Effect {
-public:
+private:
+       // Should not be instantiated by end users.
        GammaExpansionEffect();
+       friend class EffectChain;
+
+public:
        virtual std::string effect_type_id() const { return "GammaExpansionEffect"; }
        std::string output_fragment_shader();