comparison third_party/raylib/smoke.c @ 276:b55c22cff335

Add interactive infinite canvas prototype
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 16:57:56 -0700
parents
children
comparison
equal deleted inserted replaced
274:c9be578316a6 276:b55c22cff335
1 #include "third_party/raylib/include/raylib.h"
2
3 #if defined(PLATFORM_WEB)
4 #include <emscripten/emscripten.h>
5 #endif
6
7 static void DrawFrame(void)
8 {
9 BeginDrawing();
10 ClearBackground(RAYWHITE);
11 DrawText("raylib 6", 24, 24, 24, DARKGRAY);
12 DrawRectangle(24, 64, 120, 72, SKYBLUE);
13 EndDrawing();
14 }
15
16 int main(void)
17 {
18 InitWindow(480, 270, "Raylib 6 smoke test");
19 SetTargetFPS(60);
20
21 #if defined(PLATFORM_WEB)
22 emscripten_set_main_loop(DrawFrame, 0, 1);
23 #else
24 while (!WindowShouldClose()) DrawFrame();
25 CloseWindow();
26 #endif
27
28 return 0;
29 }