summaryrefslogtreecommitdiff
path: root/src/main/smp/sys/gfx.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/smp/sys/gfx.md')
-rw-r--r--src/main/smp/sys/gfx.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/smp/sys/gfx.md b/src/main/smp/sys/gfx.md
index 931d985f..61a2aba5 100644
--- a/src/main/smp/sys/gfx.md
+++ b/src/main/smp/sys/gfx.md
@@ -1,6 +1,6 @@
# Optional graphics
-[Chapter 31](../../../../README.md#graphics-and-sound) introduces the library.
+[Chapter 31](../../../../../chapter31/README.md#graphics-and-sound) introduces the library.
The Simple API is implemented in [gfx.smp](gfx.smp), with the window adapter in
[simple_minifb.c](../../c/simple_minifb.c).
@@ -15,7 +15,7 @@ The game run target also builds optional [background audio](audio.md).
## Default: no graphics dependency
-From `chapter31`, the usual `make release`, `make tests`, and `make tictactoe`
+From `chapter32`, the usual `make release`, `make tests`, and `make tictactoe`
need no MiniFB, graphics headers, OpenGL, CMake, or running display. Nothing
downloads dependencies unless you explicitly request `make libs` or `make init`
(`make lib` remains a setup alias). Build and run targets never use the network.
@@ -32,7 +32,7 @@ the process. Non-graphics programs ignore even a broken graphics configuration.
## Build the optional backend
-From `chapter31`:
+From `chapter32`:
```sh
make libs # Once while online; fills the persistent lib/ cache.
@@ -68,7 +68,7 @@ also demonstrates the diagnostic and exit status 1 when graphics is absent.
or release Escape to exit. Passing any argument to the executable makes it
close after five polling iterations, for a quick smoke test.
-To run directly from `chapter31` in PowerShell:
+To run directly from `chapter32` in PowerShell:
```powershell
$env:SIMPLE_MINIFB = (Resolve-Path build/release/x86_64_v2_win64/simple_minifb.dll).Path
@@ -92,7 +92,7 @@ export SIMPLE_MINIFB="$PWD/build/release/x86_64_v2_win64/simple_minifb.dll"
For WSL, from the repository root:
```sh
-wsl -d Ubuntu-24.04 -- bash -lc 'cd chapter31 && make graphics graphics-example CLZDIR=build/classes-linux'
+wsl -d Ubuntu-24.04 -- bash -lc 'cd chapter32 && make graphics graphics-example CLZDIR=build/classes-linux'
```
Inside WSL, set `SIMPLE_MINIFB` to the full path of the Linux `.so`, then run
@@ -107,7 +107,7 @@ With no `SIMPLE_MINIFB` setting, the runtime searches beside the executable,
then its `../../release/<ABI>` and `../release/<ABI>` directories. These cover
the examples and test build layouts regardless of the current directory.
It also checks the current directory, `build/release/<ABI>`, and
-`chapter31/build/release/<ABI>` relative to the current directory. Thus built
+`chapter32/build/release/<ABI>` relative to the current directory. Thus built
examples such as `Clock.exe` can be launched directly without configuration.
`SIMPLE_MINIFB` overrides discovery; an invalid explicit path reports an error