aboutsummaryrefslogtreecommitdiff
path: root/source/all.h
diff options
context:
space:
mode:
authorEmil Williams2026-02-05 09:29:51 +0000
committerEmil Williams2026-02-05 09:29:51 +0000
commit45570024a49b80359d848329f2c363d5bf9af44a (patch)
tree31243e117a965569ecbc745eba88b25536b7fc99 /source/all.h
parenta5209153cf8df1cd58c2f70f9eabb0bf5dd071f8 (diff)
downloadEUROPAXI-45570024a49b80359d848329f2c363d5bf9af44a.tar.xz
EUROPAXI-45570024a49b80359d848329f2c363d5bf9af44a.tar.zst
assets & core8e8m
Diffstat (limited to 'source/all.h')
-rw-r--r--source/all.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/source/all.h b/source/all.h
index 9d97653..df42641 100644
--- a/source/all.h
+++ b/source/all.h
@@ -9,32 +9,31 @@
#define TEXT_BUFFER_LIMIT (1<<12)
#define FRAME_LIMIT (1<<4)
-#define MIN(a,b) (a)<(b)?(a):(b)
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#define MAX(a,b) ((a)>(b)?(a):(b))
+#define CLAMP(a,b,c) (a)<(b)?(b):(a)>(c)?(c):(a)
typedef struct {
Font font;
float frame_x[FRAME_LIMIT];
float frame_y[FRAME_LIMIT];
int horizontal, vertical;
+ float ups, fps;
} game_t;
/* render.c */
-/* Everything here assumes White On Black = OK. for now. */
-/* Things should be textured and have backgrounds which is a lot of extra params,
- which are not important right now. */
-
-/* I would prefer that things remain CENTERED as that makes preportional to WINDOW SIZE shit easier */
-/* The Window is resizable, by the way. */
-
-void draw_square_grid (game_t * game, size_t frame, int size, Texture * texture, int * array, size_t length);
-void draw_vertical_bargraph (game_t * game, size_t frame, int size, Color color, int * arr, size_t length);
-void draw_centered_text (game_t * game, size_t frame, int font_size, Color color, char * format, ...);
+void DrawSquareGrid (game_t * game, size_t frame, int size, Texture * texture, int * array, size_t length);
+void DrawVerticalBargraph (game_t * game, size_t frame, int size, Color color, int * arr, size_t length);
+void DrawCenteredText (game_t * game, size_t frame, int font_size, Color color, char * format, ...);
/* game.c */
-void game_frame(game_t * game, size_t frame, float x, float y);
-Vector2 game_frame_vector(game_t * game, size_t frame);
+void GameInitialize(game_t * game, char * window_name);
+void GameDeinitialize(game_t * game);
+void GameFrame(game_t * game, size_t frame, float x, float y);
+void GameFrameReset(game_t * game);
+Vector2 GameFrameVector(game_t * game, size_t frame);
/* ... */