summaryrefslogtreecommitdiff
path: root/platform_win32.c
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-06 14:29:05 +0200
committerkkard2 <[email protected]>2025-09-06 14:29:05 +0200
commit0b86e0d8e96ccb313bd8033aec013f29fe8a8b99 (patch)
treefc9dbb02a66c12fbc450e18030ce6607372d79dc /platform_win32.c
parentccda453a9095f1643fabcbb4befd148fa0d0d34e (diff)
multiple examples
Diffstat (limited to 'platform_win32.c')
-rw-r--r--platform_win32.c8
1 files changed, 5 insertions, 3 deletions
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 <windows.h>
-// 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,