]> git.sesse.net Git - nageru/blobdiff - theme.h
Ask the Lua script for number of channels.
[nageru] / theme.h
diff --git a/theme.h b/theme.h
index f58681d080666dfe8fb3861512dc44b4de9bdd68..473985a22cb3b82ae9e639c994141d64b5a99037 100644 (file)
--- a/theme.h
+++ b/theme.h
@@ -24,6 +24,7 @@ public:
                input_textures[signal_num].tex_y = tex_y;
                input_textures[signal_num].tex_cbcr = tex_cbcr;
        }
+       int get_num_channels() { return num_channels; }
 
        void connect_signal(movit::YCbCrInput *input, int signal_num);
        void transition_clicked(int transition_num, float t);
@@ -35,6 +36,7 @@ private:
        struct {
                GLuint tex_y = 0, tex_cbcr = 0;
        } input_textures[16];  // FIXME
+       int num_channels;
 };
 
 class LiveInputWrapper {