summaryrefslogtreecommitdiff
path: root/src/style/properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/style/properties.cpp')
-rw-r--r--src/style/properties.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/style/properties.cpp b/src/style/properties.cpp
new file mode 100644
index 0000000000..0ea3fbfeef
--- /dev/null
+++ b/src/style/properties.cpp
@@ -0,0 +1,25 @@
+#include <llmr/style/properties.hpp>
+
+
+#include <cassert>
+
+using namespace llmr;
+
+
+float functions::null(float z, const std::vector<float>&) {
+ return 0;
+}
+
+bool functions::null(float z, const std::vector<bool>&) {
+ return false;
+}
+
+float functions::constant(float z, const std::vector<float>& values) {
+ assert(values.size() == 1);
+ return values.front();
+}
+
+bool functions::constant(float z, const std::vector<bool>& values) {
+ assert(values.size() == 1);
+ return values.front();
+} \ No newline at end of file