diff options
author | Fox Caminiti <fox@foxcam.net> | 2023-01-06 10:26:43 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2023-01-06 10:26:43 -0500 |
commit | 1de48570b220acc1ca7063e2a9cda1e89178c0f9 (patch) | |
tree | 1edd38bd7ad7f95f865793a9d0e54c62aa3bf37e /src/include/nanovg.h | |
parent | eebbdd012b0d156e9e92369585c6ad82ed3de371 (diff) |
bad shape positioning
Diffstat (limited to 'src/include/nanovg.h')
-rw-r--r-- | src/include/nanovg.h | 29 |
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; +}; + |