summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-10-24 22:58:07 -0400
committerFox Caminiti <fox@foxcam.net>2022-10-24 22:58:07 -0400
commit87c3fbb37141827622eeadb89189c267ed4baf87 (patch)
tree74fabb5e25881ce319a513ee2d4f8700a582e30e /main.h
parent7804c6a96d26c2e757d09f1864eb73fb81eb280f (diff)
development
Diffstat (limited to 'main.h')
-rw-r--r--main.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/main.h b/main.h
index 9ccb19e..cfdb816 100644
--- a/main.h
+++ b/main.h
@@ -39,9 +39,10 @@ enum blend_mode
blend_difference
};
+#define STRING_SIZE (1024 - sizeof(uint8)) // TODO(fox): Paths above STRING_SIZE length aren't handled properly.
struct block_string {
uint8 Occupied;
- char Char[1024 - sizeof(uint8)];
+ char Char[STRING_SIZE];
};
struct bitmap_cache_status
@@ -146,6 +147,25 @@ struct ui
ImVec2 Warp_PositionToSet;
real32 Warp_PositionInitial;
int32 Warp_Direction;
+
+ ImU32 LayerColors[16] = {
+ 0x00050506,
+ 0x00806754,
+ 0x002d3f66,
+ 0x0044546e,
+ 0x00556780,
+ 0x005d7392,
+ 0x007e7b7e,
+ 0x00828282,
+ 0x00434344,
+ 0x00AB8A71,
+ 0x003C5588,
+ 0x005B7193,
+ 0x00728AAB,
+ 0x007C9AC3,
+ 0x00A9A5A8,
+ 0x00c0c0c0
+ };
};
struct pen_state {
@@ -247,6 +267,12 @@ struct property_header
real32 MaxVal;
};
+struct property_info
+{
+ real32 MinVal = FLT_MAX;
+ real32 MaxVal = FLT_MIN;
+};
+
struct property_channel {
char *Name;
uint16 Block_Bezier_Index[MAX_KEYFRAME_BLOCKS];
@@ -265,6 +291,7 @@ struct block_layer {
uint8 Occupied;
bool32 IsPrecomp;
+ bool32 Precomp_Toggled;
uint16 Block_Source_Index; // also used for precomp
uint16 Block_String_Index;
uint16 Block_Composition_Index;