diff options
| author | Emil Williams | 2026-02-11 08:05:44 +0000 |
|---|---|---|
| committer | Emil Williams | 2026-02-11 08:05:44 +0000 |
| commit | 35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab (patch) | |
| tree | 81592743a5512e486913d796f7201a65825fc29f /source/all.h | |
| download | Monobomberman-35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab.tar.xz Monobomberman-35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab.tar.zst | |
init
Diffstat (limited to 'source/all.h')
| -rw-r--r-- | source/all.h | 38 |
1 files changed, 38 insertions, 0 deletions
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 <stdio.h> +#include <stdint.h> +#include <math.h> + +#include <raylib.h> +#include <raygui.h> +#include <rlgl.h> + +#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_ */ |
