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

C++ Skia bindings #3

Closed
pragmatrix opened this issue Feb 15, 2019 · 1 comment
Closed

C++ Skia bindings #3

pragmatrix opened this issue Feb 15, 2019 · 1 comment

Comments

@pragmatrix
Copy link

Hi, @Brooooooklyn and I are trying to do the same as we speak, but we are trying to interface the Skia C++ API instead of the C API. Bindgen has limited support for that, but we are progressing steadily. Two days ago, I managed to render some Skia graphics on a Vulkan Image in Rust using Voodoo with anti-aliasing in realtime... just a triangle and a rough PoC, but hey, it works 🎉.

Here is a shameless introduction to our project:

The binding generator: https://github.com/Brooooooklyn/rust-skia
Vulkan binding experiments: pragmatrix/rust-skia#3
Skia-Safe, the presumably future safe wrappers for Rust: https://github.com/pragmatrix/skia-safe
My thoughts about the binding development: https://github.com/pragmatrix/skia-safe/issues/1
And in general: rust-skia/rust-skia#6

I must admit that our attempt involves more risk and is in a bit of a chaotic state at the moment, but it may make sense to join efforts, and if not, I just wanted you to know that I am going to steal all ideas from you, because I am an absolute Rust newbee. And if I hit a road block, probably adding the Vulkan specific C functions and joining your project is another option for me to proceed (I've read somewhere that Xamarin team is considering that too, but they don't have a high priority assigned for that).

And great work on the OpenGL GPU bindings, I am quite impressed with your progress!

@M-Adoo
Copy link
Owner

M-Adoo commented Feb 15, 2019

Glad to see a c++ api binding for skia. I had a little worried about use C++ api may more complex and risk. All I need is a Rust idiomatic safe bindings.
Anyway, I'll watch your project, and happy to see your progress. Let continue to observe C api binding and C++ binding, maybe we can do same work together in the end.

@M-Adoo M-Adoo closed this as completed Feb 20, 2019
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