allow for custom SDL window parameters #8

Merged
odweta merged 2 commits from feat/custom-sdl-window-params into dev 2026-10-06 10:42:34 +02:00
Showing only changes of commit 6b3b5b0241 - Show all commits
+4 -4
View File
@@ -25,10 +25,8 @@ client_poll_event()
void
client_update_framebuffer()
{
// single green demo pixel
game_state->framebuffer[0] = 0x00FF00;
put_rect(0, 0, 1100, 200, 0xFFFF00);
// example window contents
clear_framebuffer(0xFFFF00);
put_string("Hello, traveller. You have come\nto the right place!",
20, 20, 2, 2, 3, 0x000000, 0xFFFF00
);
@@ -39,6 +37,8 @@ main()
{
// initialize the engine
if (engine_init(
500, 100,
"Dangerzone",
client_poll_event,
client_update_framebuffer
)) {