summaryrefslogtreecommitdiff
path: root/include/llmr/style/properties.hpp
blob: 8eb0969c7122f2c8fc197fe9a51560521d1d7e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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