Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snowycoder/winit-bug-reopen-example
Temporary repository to show a bug in the rust winit library
https://github.com/snowycoder/winit-bug-reopen-example
Last synced: 5 days ago
JSON representation
Temporary repository to show a bug in the rust winit library
- Host: GitHub
- URL: https://github.com/snowycoder/winit-bug-reopen-example
- Owner: SnowyCoder
- Created: 2023-12-26T15:24:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-26T15:25:27.000Z (about 1 year ago)
- Last Synced: 2024-11-12T09:14:20.896Z (2 months ago)
- Language: Rust
- Size: 115 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This tests using `GameActivity` with winit and wgpu.
Note: This example builds against Winit master so there's always
some chance that there will be a breaking change upstream that
affects this example.Although it would have been possible to handle the suspend/resume
lifecycle events with a simpler approach of destroying and
recreating all graphics state, this tries to represent how
lifecycle events could be handled in more complex applications,
such as within Bevy.This example also aims to show how it's possible to use Winit
to write portable code that can run on both Android and on desktop
platforms. (enable "desktop" feature to build binary)```
export ANDROID_NDK_HOME="path/to/ndk"
export ANDROID_HOME="path/to/sdk"rustup target add aarch64-linux-android
cargo install cargo-ndkcargo ndk -t arm64-v8a -o app/src/main/jniLibs/ build
./gradlew build
./gradlew installDebug
adb shell am start -n co.realfit.agdkwinitwgpu/.MainActivity
```