From 1de48570b220acc1ca7063e2a9cda1e89178c0f9 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Fri, 6 Jan 2023 10:26:43 -0500 Subject: bad shape positioning --- src/include/nanovg.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/include/nanovg.h (limited to 'src/include/nanovg.h') 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; +}; + -- cgit v1.2.3