From 04b7ccfd87d802e6b9a22b86c8d098979164b8ba Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Mon, 15 Aug 2022 23:03:30 -0400 Subject: undo started --- functions.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'functions.h') diff --git a/functions.h b/functions.h index 81f18ee..7f8f5d3 100644 --- a/functions.h +++ b/functions.h @@ -12,7 +12,7 @@ static uint64 Bitmap_CalcUnpackedBytes(uint16 Width, uint16 Height, uint16 Bytes static void Bitmap_ConvertPacking(void *Buffer, void *DestBuffer, uint16 Width, uint16 Height, uint16 BytesPerPixel, uint16 Which); static void Bitmap_CalcHistogram(void *Data, void *Input, uint16 BytesPerPixel, uint64 TotalBytes); -static bool32 Source_Generate(project_data *File, memory *Memory, char *Path); // Fills out source info if the source is a supported file. +static bool32 Source_Generate(project_data *File, memory *Memory, void *Path); // Fills out source info if the source is a supported file. // Libav (ffmpeg) backend for decoding video @@ -32,3 +32,7 @@ static v2 ImGui_ScreenPointToCompUV(ImVec2 ViewportMin, ImVec2 CompPos, ImVec2 C void Bezier_CubicCalcPoints(v2 p1, v2 p2, v2 p3, v2 p4, void *Data, uint32 *Increment); +static void Action_Change_Commit(memory *Memory, void *DataLocation, void *NewData, action_change_type ActionChange); +static void Action_Undo(memory *Memory); +static void Action_Redo(memory *Memor); + -- cgit v1.2.3