diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-08 17:12:52 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-08 17:12:52 -0400 |
commit | f1e12e108869c560d92eb8803e4b5104c7d8f85d (patch) | |
tree | 5daf3348b04574cb2008cffc7fa76195218fc4ea /main.h | |
parent | 635576972024319c15141645d3304db8cd1d1e19 (diff) |
mask improvements; pen tool added
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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; |