summaryrefslogtreecommitdiffhomepage
path: root/.rules/plan/phase-01-raylib-window.md
blob: d40959bfa7b8b0700a8e97f96b63ce4962374d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.