summaryrefslogtreecommitdiff
path: root/src/lightctx.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-16 23:15:22 +0200
committerThomas White <taw@physics.org>2019-07-16 23:15:22 +0200
commit03f23ec9b611bf61f439ddde4a8759459be29832 (patch)
treee5ec2bf25b5503a39faab36d1ed75c23d3bd18bd /src/lightctx.h
parent6f0279d8dfb9db1824b2a037569e17bb0d49659a (diff)
Initial crossfade stuff
Diffstat (limited to 'src/lightctx.h')
-rw-r--r--src/lightctx.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lightctx.h b/src/lightctx.h
index ec9170a..3017a5e 100644
--- a/src/lightctx.h
+++ b/src/lightctx.h
@@ -138,12 +138,37 @@ struct fixture
};
+struct fade_fix
+{
+ struct fixture *fix;
+ int attrs; /* Bit mask of attributes to change */
+ struct attr_vals start;
+ struct attr_vals target;
+};
+
+
+struct fade
+{
+ struct fade_fix *fixtures;
+ int n_fixtures;
+
+ gint64 start_time;
+ int active;
+
+ float fade;
+ float delay;
+};
+
+
struct lightctx
{
int n_fixtures;
int max_fixtures;
struct fixture *fixtures;
+ struct fade *fades;
+ int n_fades;
+
GtkIMContext *im_context;
GtkWidget *da;