From 93f50d20a021150a0b95242be0d5dd5cae9d0185 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Sat, 11 Apr 2026 19:06:35 +0900 Subject: plan and research --- .rules/plan/phase-01-raylib-window.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .rules/plan/phase-01-raylib-window.md (limited to '.rules/plan/phase-01-raylib-window.md') 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. -- cgit v1.2.3