summaryrefslogtreecommitdiff
path: root/src/include/nanovg.h
blob: c6df6b4eb6fdb4c846d34171ab651845ab16f06d (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

enum nvg_line_cap {
	NVG_BUTT,
	NVG_ROUND, // join and line type
	NVG_SQUARE,
	NVG_BEVEL, // join type
	NVG_MITER, // join type
};

enum nvg_point_flags
{
	NVG_PT_CORNER = 0x01,
	NVG_PT_LEFT = 0x02,
	NVG_PT_BEVEL = 0x04,
	NVG_PR_INNERBEVEL = 0x08,
};

struct nvg_point
{
    real32 x;
    real32 y;
    real32 dx;
    real32 dy;
    real32 Length;
    real32 dmx;
    real32 dmy;
    uint8 Flags;
};