diff options
author | Thomas White <taw@physics.org> | 2019-07-16 21:36:23 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-07-16 21:36:23 +0200 |
commit | 6f0279d8dfb9db1824b2a037569e17bb0d49659a (patch) | |
tree | dcb660029d5abb0f695a3194c2b5275ecfb6bff0 /src/lightctx.h | |
parent | 3515a370920875883f6f388ccf29a097132ab44e (diff) |
Put all attribute values in a struct
Diffstat (limited to 'src/lightctx.h')
-rw-r--r-- | src/lightctx.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/lightctx.h b/src/lightctx.h index 3084f50..ec9170a 100644 --- a/src/lightctx.h +++ b/src/lightctx.h @@ -97,15 +97,8 @@ struct fixture_class }; -struct fixture +struct attr_vals { - char *label; - int universe; - int base_addr; - struct fixture_class *cls; - - int flags; - float intensity; /* 0 (off) to 1 (full) */ float cyan; /* 0 (no filter) to 1 (full colour) */ float magenta; /* 0 (no filter) to 1 (full colour) */ @@ -125,6 +118,19 @@ struct fixture float zoom; /* 0 (narrowest) to 1 (widest) */ float frost; /* 0 (hardest) to 1 (softest) */ float iris; /* 0 (fully open) to 1 (fully closed) */ +}; + + +struct fixture +{ + char *label; + int universe; + int base_addr; + struct fixture_class *cls; + + int flags; + + struct attr_vals v; /* Values at start of mouse movement */ float pan_start; |