diff options
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 38 |
1 files changed, 35 insertions, 3 deletions
@@ -163,8 +163,11 @@ struct sorted_file sorted_comp_info *CompArray; sorted_property_info *PropertyInfo; uint16 *PropertyArray; + uint16 *SourceArray; // sort by recency, temp only + uint16 TempSourceCount; uint64 Layer_SortSize; uint64 Property_SortSize; + uint64 Source_SortSize; }; enum timeline_mode @@ -251,9 +254,10 @@ char *BrushNames[brush_amount] = { struct brush_state { ImVec2 UIPos; // Initial position when ctrl is held - real32 Size = 512; // Maxes at 1024 for now + real32 Size = 64; // Maxes at 1024 for now real32 Hardness = 1.0f; // From 1 to 100 real32 Spacing = 1.0f; + bool32 EraseMode = 0; brush_type Type = brush_normal; GLuint GLTexture; void *PaintBuffer; @@ -300,6 +304,16 @@ struct interact_transform uint32 TransformMode; }; + + +enum hotkey_input +{ + hotkey_none, + hotkey_transform, + hotkey_copy, + hotkey_paste +}; + struct project_state { bool32 UpdateKeyframes = 1; @@ -315,12 +329,14 @@ struct project_state brush_state Brush; sd_state SD; - char JSONPayload[1024]; + char JSONPayload[1024*1024*4]; int32 CurlActive = 0; real32 SDPercentDone; real32 SDTimeEstimate; real64 SDTimer; + hotkey_input HotkeyInput; + void *Dump1; void *Dump2; @@ -407,6 +423,9 @@ struct block_source uint16 Height; uint16 BytesPerPixel; + uint32 RelativeTimestamp; // + GLuint ThumbnailTex; + source_type Type; }; @@ -518,6 +537,18 @@ struct transform_info { void *SourceBuffer; }; +struct direct_info { + real32 BufferWidth; + real32 BufferHeight; + real32 BufferBytesPerPixel; + real32 BufferPitch; + render_byte_info BufferBits; + + blend_mode BlendMode; + rectangle ClipRect; + void *SourceBuffer; +}; + struct brush_info { uint32 BrushLength; rectangle LayerBounds; @@ -535,12 +566,13 @@ struct brush_info { real32 G_Brush; real32 B_Brush; real32 A_Brush; + bool32 EraseMode; uint8 *BrushRow; }; enum render_type { render_type_main, - render_type_direct, + render_type_notransform, render_type_brush }; |