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

Kivy Integration and/or Mobile Export #345

Open
Aman-Anas opened this issue Sep 1, 2023 · 1 comment
Open

Kivy Integration and/or Mobile Export #345

Aman-Anas opened this issue Sep 1, 2023 · 1 comment

Comments

@Aman-Anas
Copy link

Aman-Anas commented Sep 1, 2023

I was wondering if it would be possible to integrate using Kivy as an additional backend, since it has Android and iOS export capabilities as well as many other features. Unfortunately, it doesn't use the same PyOpenGL bindings as the other integrations do and instead they have their own, very similar set (I believe it's also OpenGL-ES)

https://kivy.org/doc/stable/api-kivy.graphics.html
https://github.com/kivy/kivy/blob/master/kivy/graphics/opengl.pyx
https://groups.google.com/g/kivy-users/c/JShG-MNMpIA/m/yvJgIaTUCgAJ

I've experimented a bit with it, but I can't understand whether vertex array objects are supported or not... and also my knowledge of OpenGL is quite limited. However, I think it might be possible. It would be great to be able to use pyimgui alongside Kivy, or at the very least use it to make mobile applications. (I think doing IO for mobile shouldn't be too difficult using Plyer to get input)

@Aman-Anas
Copy link
Author

Aman-Anas commented Sep 4, 2023

Another option for mobile support would be to use buildozer, which already has recipes set up for PySDL2 and pyimgui already has a backend in that. I've tried this myself, but haven't yet figured out how to cross-compile the imgui core.so for Android (buildozer has a CythonRecipe system) so it complains about being compiled for the wrong architecture. It might be significantly easier than trying to hack workarounds for missing OpenGL commands in Kivy.

@Aman-Anas Aman-Anas changed the title Kivy Integration Kivy Integration and/or Mobile Export Sep 4, 2023
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

1 participant