diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:43:04 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:43:04 +0300 |
| commit | f8633236503df6e3caea9ed7975d6a81bc5c8025 (patch) | |
| tree | 9928b40cbf4b314c0722e1249bde74cf15b9e4b7 /README.md | |
| parent | e24b8a8cef001e1c7e50ab12b739486f59b2a850 (diff) | |
Describe the hello window from main
hello no longer needs an init callback: main passes its window spec
through yasl_app_desc.window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -48,8 +48,9 @@ selection chooses the native session and allows fallback, or you can request an explicit backend with `yasl_display_spec.backend`. Include `<yasl/app.h>` and pass application callbacks to `yasl_run()`. -The complete [hello.c](examples/hello.c) creates its window in `init`, handles -close requests in `event`, and fills every pixel in its frame callback: +The complete [hello.c](examples/hello.c) describes its window in +`yasl_app_desc.window`, handles close requests in `event`, and fills every pixel +in its frame callback: ```c static void draw(void *ud, struct yasl_surface *surface, struct yasl_frame_context *frame) |
