Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is something like the old SDL2 example still possible with this wrapper? #19

Open
sztomi opened this issue Nov 6, 2020 · 2 comments
Open

Comments

@sztomi
Copy link

sztomi commented Nov 6, 2020

I was looking for a libmpv wrapper that can render to a opengl frame buffer. I found mpv-rs that has a SDL2 example that does just that. This project appears to be fork of that, but the SDL2 example was removed in 5896d2d

Is that functionality no longer in the scope of this project?

@ParadoxSpiral
Copy link
Owner

First of all this isn't exactly a fork of libmpv, it binds to the APIs exposed by it in the crate libmpv-sys and then makes them closer to idiomatic rust in libmpv-rs.

The libmpv API that we used for that example was deprecated, and instead the new render API should be used. Currently I have not had the time to create an idiomatic wrapper. However if you don't mind you can still use the raw bindings.

Sorry for the late response.

@sztomi
Copy link
Author

sztomi commented Nov 17, 2020

Thanks for getting back to me. I'll probably try to craft a safe wrapper on top of the raw bindings then. Would you be interested in a PR for adding that to this library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants