diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-07-24 11:22:48 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-07-24 11:22:48 -0400 |
commit | 3e399d7f2f37feb10e120d7c5950615ffb350a84 (patch) | |
tree | 4cb8c876c176b5ccbdfcaefec8c97abc0b4f773a /main.h | |
parent | 4e37809ee8823dc1a9e1b044b9180840c8f5ca7f (diff) |
demo scene added; minor oversights fixed
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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 |