Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ SDL_VIDEODRIVER=dummy build/examples/2048 # omit env var for a visible window
```

The bundle covers a 2048 game, a paint demo, Conway's Game of Life, an
analog clock, an interactive Mandelbrot viewer, and the upstream X.Org
`x11perf` benchmark. See [`docs/EXAMPLES.md`](docs/EXAMPLES.md) for the API
analog clock, an interactive Mandelbrot viewer, a single-runner Processing-style
showcase, and the upstream X.Org `x11perf` benchmark. See
[`docs/EXAMPLES.md`](docs/EXAMPLES.md) for the API
each example exercises.

## Coverage and Compatibility
Expand Down
1 change: 1 addition & 0 deletions docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ SDL_VIDEODRIVER=dummy build/examples/2048 # omit env var for a visible window
| `life` | [`examples/life.c`](../examples/life.c) | Conway's Game of Life (MIT, in-tree). Pixmap double buffering (`XCreatePixmap` + `XCopyArea`), bulk `XFillRectangle`, `select()`-driven timed redraws via `ConnectionNumber`, `WM_DELETE_WINDOW`. |
| `clock` | [`examples/clock.c`](../examples/clock.c) | Analog clock (MIT, in-tree). `XDrawArc` / `XFillArc`, multiple GCs with `XSetLineAttributes`, one-second redraw cadence driven by `gettimeofday`. |
| `mandel` | [`examples/mandel.c`](../examples/mandel.c) | Interactive Mandelbrot viewer (MIT, in-tree). `XCreateImage` + `XPutImage` with a 32-bit ZPixmap raster (buffer ownership transferred to the `XImage`), `ButtonPress` dispatch. |
| `processing` | [`examples/processing.c`](../examples/processing.c) | Standalone Processing-like showcase (MIT, in-tree). Exercises Xlib polygons, arcs, lines, strings, pointer input, key input, and timed redraws. |
| `x11perf` | [`examples/x11perf/`](../examples/x11perf/README.md) | Upstream X.Org `x11perf` benchmark. Imported from `0c3597b6` with only local build glue (a `config.h` shim and one cosmetic output tweak). Self-contained performance harness for the SDL2-backed paths. |

The short regression loop used during performance work:
Expand Down
Loading
Loading