summaryrefslogtreecommitdiff
path: root/src/include/main.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2023-01-06 10:26:43 -0500
committerFox Caminiti <fox@foxcam.net>2023-01-06 10:26:43 -0500
commit1de48570b220acc1ca7063e2a9cda1e89178c0f9 (patch)
tree1edd38bd7ad7f95f865793a9d0e54c62aa3bf37e /src/include/main.h
parenteebbdd012b0d156e9e92369585c6ad82ed3de371 (diff)
bad shape positioning
Diffstat (limited to 'src/include/main.h')
-rw-r--r--src/include/main.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/main.h b/src/include/main.h
index a39fe45..db384ce 100644
--- a/src/include/main.h
+++ b/src/include/main.h
@@ -183,11 +183,14 @@ struct sorted_file
uint64 Source_SortSize;
};
+
struct shape_options {
int Visibility;
v4 FillCol = {1, 1, 1, 1};
- v4 StrokeCol = {1, 1, 1, 1};
- float StrokeWidth = 50;
+ v4 StrokeCol = {0, 1, 0, 1};
+ float StrokeWidth = 10;
+ nvg_line_cap LineJoinType = NVG_ROUND;
+ nvg_line_cap LineCapType = NVG_ROUND;
};
struct shape_layer {
@@ -196,6 +199,8 @@ struct shape_layer {
uint16 Point_Count;
bool32 IsClosed;
bool32 Contiguous = 1; // No points have been deleted/added, so sorting isn't needed.
+ // NOTE(fox): This is kinda lazily done atm, there may be situations where
+ // this isn't the correct value.
int Width;
int Height;
shape_options Opt;