From f1e12e108869c560d92eb8803e4b5104c7d8f85d Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Mon, 8 Aug 2022 17:12:52 -0400 Subject: mask improvements; pen tool added --- main.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'main.h') 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; -- cgit v1.2.3