-
Notifications
You must be signed in to change notification settings - Fork 113
Add a glutin example for Android #153
Comments
This is unfortunately a known issue. It should work if you call something like Basically what's |
It works, thanks! May I add this example to this repo? |
I don't think it's worth creating a new example. The proper thing to do ultimately would be to fix the problem so that all the examples just work. |
OK. I managed to compile the window.rs example from glutin repo within Android, but at the moment I get a black screen. I copied Can I contribute to fix something? I work with Rust and opengl but I am not an expert on either of them, but I'd like to help if I can. |
@wbigger Try running |
Related: rust-windowing/glutin#861 |
I am trying to use android_glue to show something on the screen, but I am quite confused, since I cannot find any working example.
I tried to run the glutin example on top of the basic example in this repository, it compiles (wonderful!) but I get the following error at runtime:
The problem seems to be in the line:
let gl_window = glutin::GlWindow::new(window, context, &events_loop).unwrap();
It sounds perfectly reasonable since in Android we do not want to make a new window, but to use the already existing activity. I tried to play a bit with
android_glue::get_native_window()
but without success.This is the project I am using for these tests: basic.zip
BTW, my final goal is to run Piston on Android!
The text was updated successfully, but these errors were encountered: