summaryrefslogtreecommitdiff
path: root/src/include/nanovg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/nanovg.h')
-rw-r--r--src/include/nanovg.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/nanovg.h b/src/include/nanovg.h
new file mode 100644
index 0000000..c6df6b4
--- /dev/null
+++ b/src/include/nanovg.h
@@ -0,0 +1,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;
+};
+