From 35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Wed, 11 Feb 2026 08:05:44 +0000 Subject: init --- source/all.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 source/all.h (limited to 'source/all.h') diff --git a/source/all.h b/source/all.h new file mode 100644 index 0000000..babc53f --- /dev/null +++ b/source/all.h @@ -0,0 +1,38 @@ +#ifndef EVERYTHING_ALWAYS_H_ +#define EVERYTHING_ALWAYS_H_ + +#include +#include +#include + +#include +#include +#include + +#include "chad.h" + +typedef struct { + Font font __attribute__((aligned)); + i16 horizontal, vertical __attribute__((aligned)); + f32 ups, fps __attribute__((aligned)); +} game_t; + +/* game.c */ + +void GameInitialize(game_t * game, char * window_name); +void GameDeinitialize(game_t * game); +void GameFrame(game_t * game, size_t frame, f32 x, f32 y); +Vector2 GameFrameVector(game_t * game, size_t frame); +void GameLoop(game_t * game); +i16 GameUpdate(game_t * game, timespec_t now); +void GameRender(game_t * game, f64 interpolation); +void GameReport(game_t * game, f32 fps, f32 ups, u32 total_fps, u32 total_ups) ; + +/* raylib.c */ + +Font DefaultFont(char * choice); +void GuiLoadStyleDarkSimple(void); + +/* ... */ + +#endif /* EVERYTHING_ALWAYS_H_ */ -- cgit v1.2.3