diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 13:44:13 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 13:44:13 +0300 |
| commit | c059e3aa7f93da470f052a5cd8ee0d8dc969e679 (patch) | |
| tree | 63ffa378287ed2c606eda2e940501b9edc3d2b8b /include/yasl/native.h | |
| parent | 87d0bc50d53dc216efb2b04495f090616318bc5c (diff) | |
rename and simplification
Diffstat (limited to 'include/yasl/native.h')
| -rw-r--r-- | include/yasl/native.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/yasl/native.h b/include/yasl/native.h index d65f8d3..64bc161 100644 --- a/include/yasl/native.h +++ b/include/yasl/native.h @@ -48,15 +48,16 @@ YASL_API void *yasl_surface_get_native_handle(struct yasl_surface *s); /** * Create a toplevel for application-managed native rendering. * @param d Display with YASL_CAP_NATIVE_GRAPHICS. - * @param spec Copied toplevel options, with logical-pixel size. + * @param spec Copied window options, with logical-pixel size and optional callbacks. * @param graphics_device Required native graphics device; currently id<MTLDevice> on Cocoa. * @return Owned surface, or NULL with errno set: EINVAL for invalid arguments, * ENOTSUP for an unsupported backend, or a backend error. * Cocoa retains the device. Query the drawable during draw, submit/present it, * then call yasl_surface_present() to record submission. + * Callback ownership and timing follow yasl_surface_create_toplevel(). */ YASL_API struct yasl_surface *yasl_surface_create_native(struct yasl_display *d, - const struct yasl_surface_spec *spec, void *graphics_device); + const struct yasl_window_spec *spec, void *graphics_device); /** Borrowed native drawable for the current draw target, currently Cocoa/Metal. */ struct yasl_native_frame { |
