Skip to content

Cleanup crate root by moving headless and window to modules#274

Merged
tomaka merged 1 commit intomasterfrom
cleanup
Feb 16, 2015
Merged

Cleanup crate root by moving headless and window to modules#274
tomaka merged 1 commit intomasterfrom
cleanup

Conversation

@tomaka
Copy link
Contributor

@tomaka tomaka commented Feb 16, 2015

No change in the API.
A few outdated comments and two #[experimental] attributes have been removed (#[experimental] has been removed from rust). The rest is just existing code moved to modules.

tomaka added a commit that referenced this pull request Feb 16, 2015
Cleanup crate root by moving headless and window to modules
@tomaka tomaka merged commit 4059180 into master Feb 16, 2015
@tomaka tomaka deleted the cleanup branch February 16, 2015 12:58
MarijnS95 added a commit that referenced this pull request Jun 6, 2022
`winit` provides a `raw-window-handle` specifically for crates to
process window pointers/references in a crate-agnostic way.  `glutin`
can use it too, to get rid of its `ndk-glue` dependency which otherwise
has a hard versioning dependency  as it should be updated in sync with
`winit`.

Over time this should be worked into the other backends, in turn
removing `winit` from the `new_windowed()` function signature and
replacing it with `impl HasRawWindowHandle` or `dyn HasRawWindowHandle`.
This will also allow Android users to pass generic `Surface`s (first
converted to a so-called `NativeWindow` in the NDK through [#272], then
passed as `RawWindowHandle` thanks to [#274]) created in Java / Kotlin /
Flutter to render to individual UI elements instead of the entire screen
with a `NativeActivity` (`ndk-glue`).  It'll in turn make the code more
generic, too, as `raw-window-handle` has a variant for every platform /
windowing system currently supported by glutin.

[#272]: rust-mobile/ndk#272
[#274]: rust-mobile/ndk#274
MarijnS95 added a commit that referenced this pull request Jun 7, 2022
`winit` provides a `raw-window-handle` specifically for crates to
process window pointers/references in a crate-agnostic way.  `glutin`
can use it too, to get rid of its `ndk-glue` dependency which otherwise
has a hard versioning dependency  as it should be updated in sync with
`winit`.

Over time this should be worked into the other backends, in turn
removing `winit` from the `new_windowed()` function signature and
replacing it with `impl HasRawWindowHandle` or `dyn HasRawWindowHandle`.
This will also allow Android users to pass generic `Surface`s (first
converted to a so-called `NativeWindow` in the NDK through [#272], then
passed as `RawWindowHandle` thanks to [#274]) created in Java / Kotlin /
Flutter to render to individual UI elements instead of the entire screen
with a `NativeActivity` (`ndk-glue`).  It'll in turn make the code more
generic, too, as `raw-window-handle` has a variant for every platform /
windowing system currently supported by glutin.

[#272]: rust-mobile/ndk#272
[#274]: rust-mobile/ndk#274
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant