CuarzoSoftware / Louvre

C++ library for building Wayland compositors.
MIT License
506 stars 14 forks source link

C bindings? #6

Closed rempas closed 9 months ago

rempas commented 9 months ago

Hello! I just found out Louvre from this post and I find it very interesting! The benchmarks also look very interesting!

I would like to ask if you plan to create C bindings?

ehopperdietzel commented 9 months ago

Hi, thank you. Creating C bindings might be challenging due to the use of virtual methods. However, one approach could be to create a function pointer for each virtual method and then have the virtual method call that function. I'm not sure if it would be the best approach, but I'll take some time to think it over. If you have any ideas, I'm all ears.