summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/main.h b/main.h
index da099cc..8a6c7ca 100644
--- a/main.h
+++ b/main.h
@@ -252,6 +252,8 @@ struct layer_bitmap_info {
void *AVInfo; // Internal data containing current frame info
};
+// NOTE(fox): I use the term "comp" (composition) to mean the canvas that is
+// being rendered to, since it's what I'm used to from AE.
struct comp_buffer {
uint16 Width;
uint16 Height;
@@ -418,7 +420,12 @@ enum selection_type
enum tool {
tool_default,
- tool_pen
+ tool_pen,
+ tool_count
+};
+
+struct pen_state {
+ bool32 IsActive;
};
struct project_state
@@ -428,6 +435,7 @@ struct project_state
bool32 DebugDisableCache = 1;
tool Tool = tool_default;
+ pen_state Pen = {};
uint16 LayersToRender[MAX_LAYERS];
uint16 NumberOfLayersToRender;
@@ -470,6 +478,9 @@ struct ui
real32 TimelineSplit = 600;
real32 TimelineZoom;
+ // Note that I don't use "zoom" to mean the scale in relation to the
+ // original (i.e. default = 1.0f); it's the literal screen size in pixels
+ // of the composition in the UI.
ImVec2 CompZoom;
ImVec2 CompPos;