From 3e399d7f2f37feb10e120d7c5950615ffb350a84 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sun, 24 Jul 2022 11:22:48 -0400 Subject: demo scene added; minor oversights fixed --- main.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'main.h') diff --git a/main.h b/main.h index 9b855b5..801b13e 100644 --- a/main.h +++ b/main.h @@ -158,7 +158,7 @@ union val { struct keyframe { val Value; - uint16 FrameNumber; + int32 FrameNumber; keyframe_type Type; bool32 IsSelected; // The X coordinate for the tangent is in keyframes, and the Y is in units. @@ -283,8 +283,8 @@ struct project_layer { effect *Effect[MAX_EFFECTS]; uint16 NumberOfEffects; - uint16 StartFrame; - uint16 EndFrame; + int32 StartFrame; + int32 EndFrame; uint32 LayerColor; @@ -312,10 +312,10 @@ struct project_data uint16 Width; uint16 Height; uint16 FPS; - uint16 NumberOfFrames; - uint16 StartFrame; - uint16 EndFrame; - int16 CurrentFrame; + uint32 NumberOfFrames; + int32 StartFrame; + int32 EndFrame; + int32 CurrentFrame; // NOTE(fox): Currently I'm handling layer sorting by just saying that // their order in memory is the order of the index and manually moving @@ -375,6 +375,7 @@ struct project_state bool32 IsRunning = 1; bool32 IsPlaying; + bool32 DemoButton = 1; uint16 NumberOfSelectedLayers; int16 MostRecentlySelectedLayer = -1; // convenience for the properties panel -- cgit v1.2.3