Welcome to tomaka/glutin, the official gitter channel for Glutin and Winit! - Github: https://github.com/rust-windowing/glutin, https://github.com/rust-windowing/winit - Crates.io: https://crates.io/crates/glutin, https://crates.io/crates/winit - Docs: https://docs.rs/glutin/0.21.0/glutin, https://docs.rs/winit/0.20.0/winit/
murarth on master
Fix broken link in documentatio… (compare)
kchibisov on v0.26.0
kchibisov on master
Release version 0.26.0 (compare)
kchibisov on master
Usa stable version of rustfmt f… (compare)
chrisduerr on master
Bump winit to 0.24.0 (compare)
fuzbuz on Freenode
But it would be nice if I didn't have to do that.
UndeadLeech on Freenode
Is that a crate, or did you write the rendering library yourself? Fundamentally taking just a winit window for rendering doesn't make a ton of sense.
UndeadLeech on Freenode
Winit's purpose is to manage your windows and window events. If you don't have winit manage your windows, there's little point in using it.
fuzbuz on Freenode
I have a rendering crate that is used in several Rust-only projects. The rendering crate takes a winit Window to provide the rendering context as the Rust-only projects use winit for managing the windows and window events. A new project, mostly in C++, wants to also use the rendering code and can provide me with a raw window handle.
fuzbuz on Freenode
I'm just curious if there is a way to do the former that I am failing to discover by reading the docs
UndeadLeech on Freenode
Which should be documented in winit's documentation.
UndeadLeech on Freenode
https://docs.rs/winit/0.23.0/winit/event_loop/struct.EventLoop.html#method.new
UndeadLeech on Freenode
I don't see how it could be any more clear tbh.
UndeadLeech on Freenode
You're aware that EventLoop is !Send + !Sync, right?
UndeadLeech on Freenode
But I don't see why you would ever do that.
UndeadLeech on Freenode
Since that just increases latency.
Ralith
> <@freenode_fuzbuz:matrix.org> As I'm making the C FFI interface for the rendering crate, I need to either turn that raw handle into a winit Window or I need to make changes to the rendering to allow using raw handles. The former is cleaner but the latter isn't a problem.
the latter is definitely the idiomatic thing to do, fwiw; this is the problem raw-window-handle was intended to solve in the first place
arturkovacs
Has anyone made a winit app that can do this?
arturkovacs
Yeah, not an issue, I can associate the filetype to my app but the problem relies in that macOS doesn't seem to use the program arguments to specify the file that the user selected. Instead there's an event that the application receives that tells the path to the files
arturkovacs
UndeadLeech: What I meant by event is that this function gets called: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428612-application?language=objc
UndeadLeech on Freenode
That seems unnecessarily complicated, so that's probably how it works on macOS, yes. :)
arturkovacs
Haha. As I was looking around I found other callback that can be registered for essentially the same thing from what I could tell but this was the one that worked when I tested with a minimal Objective-C test app
arturkovacs
* Haha. As I was looking around I found other callbacks that can be registered for essentially the same thing from what I could tell but this was the one that worked when I tested with a minimal Objective-C test app
arturkovacs
Based on the feedback I got so far it seems to me that this is a missing feature so I opened: rust-windowing/winit#1751
UndeadLeech on Freenode
It certainly can emit it.
ildar
Anyone using or aware of https://github.com/rust-windowing/android-ndk-rs/ ?
kchibisov on Freenode
Is Francesca here though?
ildar
Is it worth asking here about it?
kchibisov on Freenode
I think, I'm not aware of any other channel to talk about winit/glutin.
kchibisov on Freenode
ildar: if anything, I'd suggest to ask Android maintainers https://github.com/rust-windowing/winit/wiki/Testers-and-Contributors
ildar
> <@freenode_kchibisov:matrix.org> Is Francesca here though?
Dunno
kchibisov on Freenode
Since I'm not sure if they are here.
ildar
Ahh! Ok, thanks
ildar
Then one general question: if i want to write an app without UI, then i should use https://github.com/rust-windowing/android-ndk-rs/, right?
ildar
And ui app would require Winit?
ildar
Demo apk available?
kchibisov on Freenode
I can only speak for Linux backends.