]> git.sesse.net Git - nageru/blobdiff - nageru/theme.h
Allow giving class names to Block.choose_alternative.
[nageru] / nageru / theme.h
index 7c6b3243c85e5d61a1bd7ef42c77d64e7444c0a0..1bed9929681fd11a3649b83d14b4de2d78125836 100644 (file)
@@ -46,7 +46,9 @@ enum EffectType {
        RESIZE_EFFECT,
        MULTIPLY_EFFECT,
        MIX_EFFECT,
        RESIZE_EFFECT,
        MULTIPLY_EFFECT,
        MIX_EFFECT,
-       LIFT_GAMMA_GAIN_EFFECT
+       LIFT_GAMMA_GAIN_EFFECT,
+
+       NO_EFFECT_TYPE
 };
 
 // An EffectBlueprint refers to an Effect before it's being added to the graph.
 };
 
 // An EffectBlueprint refers to an Effect before it's being added to the graph.
@@ -162,7 +164,7 @@ public:
 
 private:
        void register_constants();
 
 private:
        void register_constants();
-       void register_class(const char *class_name, const luaL_Reg *funcs);
+       void register_class(const char *class_name, const luaL_Reg *funcs, EffectType effect_type = NO_EFFECT_TYPE);
        int set_theme_menu(lua_State *L);
        Chain get_chain_from_effect_chain(movit::EffectChain *effect_chain, unsigned num, const InputState &input_state);
 
        int set_theme_menu(lua_State *L);
        Chain get_chain_from_effect_chain(movit::EffectChain *effect_chain, unsigned num, const InputState &input_state);