diff options
Diffstat (limited to 'docs/migrating.md')
| -rw-r--r-- | docs/migrating.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/migrating.md b/docs/migrating.md index e1f5442..86804c8 100644 --- a/docs/migrating.md +++ b/docs/migrating.md @@ -6,8 +6,9 @@ See the [application guide](guide.md) for the full window and input workflow. ## Application callbacks -All examples now use `<yasl/app.h>` and `yasl_run()`. Move window creation to -`yasl_app_desc.init`, input handling to `.event`, and drawing to `.frame`. +All examples now use `<yasl/app.h>` and `yasl_run()`. Describe a single window +in `yasl_app_desc.window`, or create windows in `.init`; move input handling to +`.event` and drawing to `.frame`. Replace manual dispatch/poll/flush loops with the runner and request redraws with `yasl_surface_request_frame()`. Present the frame context with `yasl_frame_present_cpu()`; the runner destroys remaining surfaces on exit. |
