diff options
Diffstat (limited to 'include/llmr/style/properties.hpp')
-rw-r--r-- | include/llmr/style/properties.hpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/llmr/style/properties.hpp b/include/llmr/style/properties.hpp new file mode 100644 index 0000000000..8eb0969c71 --- /dev/null +++ b/include/llmr/style/properties.hpp @@ -0,0 +1,42 @@ +#ifndef LLMR_STYLE_PROPERTIES +#define LLMR_STYLE_PROPERTIES + +#include <array> + +namespace llmr { + +typedef std::array<float, 4> Color; + +enum Winding { + EvenOdd = 1, + NonZero = 2 +}; + +// enum LineCap { +// Round = 1 +// }; + +// enum LineJoin { +// Butt = 1, +// Bevel = 2 +// }; + + +struct StrokeProperties { + bool enabled = false; + Color line_color = {{ 0, 0, 0, 1 }}; + float line_width = 1; +}; + +struct FillProperties { + bool enabled = false; + Winding winding = NonZero; + bool antialiasing = true; + Color fill_color = {{ 0, 0, 0, 1 }}; + Color stroke_color = {{ 0, 0, 0, 1 }}; + float stroke_width = 1; +}; + +} + +#endif |