From 0b86e0d8e96ccb313bd8033aec013f29fe8a8b99 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sat, 6 Sep 2025 14:29:05 +0200 Subject: multiple examples --- platform_win32.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'platform_win32.c') diff --git a/platform_win32.c b/platform_win32.c index d02bbb4..a41b135 100644 --- a/platform_win32.c +++ b/platform_win32.c @@ -1,8 +1,10 @@ #define UNICODE #include -// TODO(kard): we should probably put more thought into this -#include "example.c" +#define SPONGE_IMPLEMENTATION +#include "sponge.h" + +#include "example.h" // TODO(kard): ofc some resizing stuff #define WIDTH 256 @@ -63,7 +65,7 @@ int WinMain( bmi.bmiHeader.biBitCount = 32; bmi.bmiHeader.biCompression = BI_RGB; - sponge_Canvas canvas = { + sponge_Texture canvas = { .pixels = pixel_buffer, .width = WIDTH, .height = HEIGHT, -- cgit v1.3.1