summaryrefslogtreecommitdiffhomepage
path: root/.rules/plan/phase-01-raylib-window.md
diff options
context:
space:
mode:
Diffstat (limited to '.rules/plan/phase-01-raylib-window.md')
-rw-r--r--.rules/plan/phase-01-raylib-window.md19
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.