diff options
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -77,10 +77,11 @@ enum interpolation_type }; struct bezier_point { + uint8 Occupied; v2 Pos[3]; interpolation_type Type; - uint16 ImguiID; - uint8 IsSelected; + uint8 IsSelected; //[3] + uint8 Color; }; struct block_bezier { @@ -125,15 +126,25 @@ struct sorted_layer uint16 Block_Layer_Index; }; +enum timeline_mode +{ + timeline_mode_default, + timeline_mode_graph +}; + struct ui { ImVec2 CompZoom; // In screen pixels, not percentage. ImVec2 CompPos; + ImDrawListSplitter Test; + // Under 1 is zoomed in! ImVec2 TimelinePercentZoomed; ImVec2 TimelinePercentOffset; + timeline_mode TimelineMode = timeline_mode_graph; + bool32 BoxSelect; ImVec2 DragDelta_Prev; // TODO(fox): Make native ImGui? @@ -267,6 +278,13 @@ struct property_header real32 MaxVal; }; +struct graph_info +{ + real32 MinVal = FLT_MAX; + real32 MaxVal = FLT_MIN; + real32 LowestOffset = FLT_MIN; +}; + struct property_info { real32 MinVal = FLT_MAX; |