From ed51dab429e467fc144f0bfbed70a5291c8a0a27 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sun, 21 Aug 2022 10:20:31 -0400 Subject: multisampled gl masks --- functions.h | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'functions.h') diff --git a/functions.h b/functions.h index 39e4f8d..3d4184d 100644 --- a/functions.h +++ b/functions.h @@ -22,7 +22,7 @@ static cached_bitmap * AV_LoadVideoFrame(source *Source, memory *Memory, int32 T static cached_bitmap * Cache_CheckBitmap(source *Source, layer_bitmap_info *BitmapInfo, memory *Memory, int32 TimelineFrame); -static void TestGL_InitTexture(gl_effect_layer *Test, void *Data, uint16 Width, uint16 Height); +static void TestGL_UpdateTexture(gl_effect_layer *Test, void *Data, uint16 Width, uint16 Height, bool32 Multisample); static gl_effect TestGL_MaskInitVerts(mask Mask); static void TestGL_InitVerts(); static gl_vertex_shader TestGL_MaskUploadVerts(project_layer *Layer, mask *Mask); @@ -32,13 +32,20 @@ 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 *OriginalData, void *NewData, action_change_type ActionChange); -static void Action_Change_Commit_SwapBool(memory *Memory, bool32 *Bool); -static void Action_Entry_SetPointer(memory *Memory, void *Data); -static void Action_Entry_Commit(memory *Memory, action_entry_type Type, char *Name); -static void Action_Entry_End(memory *Memory); -static void Action_Undo(memory *Memory); -static void Action_Redo(memory *Memor); + +static void History_Undo(memory *Memory); +static void History_Redo(memory *Memory); + +static void History_Entry_Commit(memory *Memory, action_entry_type Type, char *Name); +static void History_Entry_End(memory *Memory); +static void History_Entry_SetPointer(memory *Memory, void *Data); + +static void History_Action_Change(memory *Memory, void *DataLocation, void *OriginalData, void *NewData, action_type ActionChange); +static void History_Action_Change_SwapBool(memory *Memory, bool32 *Bool); +static void History_Action_Change_Increment(memory *Memory, void *Data, action_type); +static void History_Action_Shift(memory *Memory, action_type ActionChange, void *DataAddress, int16 Direction, int16 Index); +static void History_Action_Undo(memory *Memory); +static void History_Action_Redo(memory *Memory); #if ARM static void NEON_RenderLayer(transform_info T, comp_buffer *Buffer, rectangle RenderRegion); -- cgit v1.2.3