le readme

This commit is contained in:
2025-06-29 00:49:58 -04:00
parent 0e8d1ae6b4
commit 9083a25a2b
8 changed files with 87 additions and 8 deletions

22
src/snapshots.h Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include "anm2.h"
#define SNAPSHOT_STACK_MAX 100
struct SnapshotStack
{
Anm2 snapshots[SNAPSHOT_STACK_MAX];
s32 top = 0;
};
struct Snapshots
{
SnapshotStack undoStack;
SnapshotStack redoStack;
}
void undo_stack_push(UndoStack* self, Anm2* anm2);
bool undo_stack_pop(UndoStack* self, Anm2* anm2);