summaryrefslogtreecommitdiffhomepage
path: root/src/light-falloff.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-05-30 11:24:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-05-30 11:24:46 +0200
commit49e8918e20d9cce86a7a136a231e400c2680e88f (patch)
treebe8efc9f7d13b667a4e225b8dfa5f2c348b7ec10 /src/light-falloff.hpp
parent2970f407be7dd7aec13cf4733bf93b700abd2b0f (diff)
wip light inspect & serialize stuff
Diffstat (limited to 'src/light-falloff.hpp')
-rw-r--r--src/light-falloff.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/light-falloff.hpp b/src/light-falloff.hpp
index b9b1c4bf..3d047731 100644
--- a/src/light-falloff.hpp
+++ b/src/light-falloff.hpp
@@ -6,4 +6,8 @@ enum class light_falloff : uint8_t {
constant = 1, linear = 0, quadratic = 2,
};
+constexpr inline light_falloff light_falloff_COUNT{3};
+constexpr inline uint8_t light_falloff_BITS = 2;
+constexpr inline uint8_t light_falloff_MASK = (1 << 2)-1;
+
} // namespace floormat