This commit is contained in:
2025-06-19 05:29:06 -04:00
parent 9929e69f22
commit 91190987ed
30 changed files with 2754 additions and 475 deletions

30
src/state.h Normal file
View File

@@ -0,0 +1,30 @@
#pragma once
#include "shader.h"
#include "imgui.h"
#define TICK_DELAY 16
#define WINDOW_WIDTH 1600
#define WINDOW_HEIGHT 900
#define WINDOW_FLAGS SDL_WINDOW_RESIZABLE
struct State
{
SDL_Window* window;
SDL_Renderer* renderer;
SDL_GLContext glContext;
Imgui imgui;
Dialog dialog;
Preview preview;
Anm2 anm2;
Packed packed;
char argument[PATH_MAX] = STRING_EMPTY;
bool isArgument = false;
u64 tick = 0;
u64 lastTick = 0;
bool isRunning = true;
};
void init(State* state);
void loop(State* state);
void quit(State* state);