Lattice 0

Results 149 comments of Lattice 0

> There are other repos with Flutter templates (which you probably have found by now). I don't see a need to make another one. > > Just to clarify, why...

@chrisduerr you mean ``` event_loop.run(move |event, _, control_flow| { *control_flow = match event { glutin::event::Event::WindowEvent { event, .. } => match event { // Break from the main loop when...

@chrisduerr I've been thinking about this. In order to draw from another thread, I'd have to share some resources like `Display`, which do not implement `Sync`. Example: https://github.com/glium/glium/blob/master/examples/triangle.rs#L141 to call...

@kchibisov I still don't get it. On thread 2, you call draw. Let's suppose it's the draw function in the `triangle.rs` example: https://github.com/glium/glium/blob/84f82d3098fbc75aa22160b47bf0a2bdada01f07/examples/triangle.rs#L141 ``` let draw = move || {...

According to EventLoop docs: > /// Note that the `EventLoop` cannot be shared across threads (due to platform-dependant logic > /// forbidding it), as such it is neither `Send` nor...

@MarijnS95 I didn't solve it yet. I'm implementing `SurfaceTexture` rendering for `glium` right now: https://github.com/lattice0/glium/blob/surface_texture/src/backend/surface_texture/mod.rs, using my SurfaceTexture implementation from android-ndk-rs and also using other small PRs I made, but...

I forgot to say. The reason I'm doing this is to render with glium in Flutter, and the only way to render in Flutter is to a SurfaceTexture, because its...

@MarijnS95 here's an example: https://stackoverflow.com/questions/58531692/how-to-render-opengl-in-flutter-for-android Flutter gives you a `SurfaceTexture` to render into: https://github.com/mogol/opengl_texture_widget_example/blob/master/android/src/main/java/com/yourcompany/opengltexture/OpenglTexturePlugin.java#L35 and I think there's no other way. I think it would be nice to have `SurfaceTexture`...

@MarijnS95 yes, when I tried to glue `attachToGlContext` to `make_current` I get `attachToContext: invalid current EGLDisplay` and then `Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 8548 (rfacetexturepoc), pid...