diff options
| author | Adam Malczewski <[email protected]> | 2026-04-11 19:06:35 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-04-11 19:06:35 +0900 |
| commit | 93f50d20a021150a0b95242be0d5dd5cae9d0185 (patch) | |
| tree | 48054581d580974651260900d1ef79d370872952 /.rules/plan/phase-01-raylib-window.md | |
| download | winman-raylib-main.tar.gz winman-raylib-main.zip | |
plan and researchmain
Diffstat (limited to '.rules/plan/phase-01-raylib-window.md')
| -rw-r--r-- | .rules/plan/phase-01-raylib-window.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.rules/plan/phase-01-raylib-window.md b/.rules/plan/phase-01-raylib-window.md new file mode 100644 index 0000000..d40959b --- /dev/null +++ b/.rules/plan/phase-01-raylib-window.md @@ -0,0 +1,19 @@ +# Phase 1 — Raylib Window Inside Xephyr + +--- + +## Step 1.1 — Open a raylib window + +Update `main.c` to: + +1. Call `InitWindow(1280, 800, "winman-raylib")`. +2. Enter a loop: `BeginDrawing()`, clear to dark blue, `DrawText("winman-raylib", ...)`, + `EndDrawing()`. +3. `CloseWindow()` on exit. + +Update the Makefile to link raylib (`pkg-config --libs raylib`), plus +`-lGL -lm -lpthread -ldl`. + +**Verify:** `./bin/run.sh` opens Xephyr and a raylib window appears inside +it showing "winman-raylib" text on a dark blue background. The window +responds to the close button / Escape key. |
