From d30d4c2c3832c1e4df1d4fb266b04ca4dfdd828b Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sun, 14 Sep 2025 12:14:31 +0200 Subject: make examples more future proof (like if i want input and stuff) --- examples/line.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/line.c') diff --git a/examples/line.c b/examples/line.c index 71d7492..c190717 100644 --- a/examples/line.c +++ b/examples/line.c @@ -1,14 +1,14 @@ #include #include "../sponge.h" +#define SPONGE_EXAMPLE_IMPLEMENTATION +#include "../example.h" #define PI ((float)3.14159265358979323846) #define SPEED (0.5f / 360.0f * 2 * PI) static float angle = 0.0f; #define MIN(x, y) ((x) < (y) ? (x) : (y)) -void init() {} - void draw_frame(sponge_Texture c) { sponge_clear(c, sponge_color32_make(0xFF000000)); angle += SPEED; -- cgit v1.3.1