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

Android example #367

Open
gen2brain opened this issue Nov 18, 2018 · 1 comment
Open

Android example #367

gen2brain opened this issue Nov 18, 2018 · 1 comment
Labels
enhancement This issue asks for enhancement in a specific part

Comments

@gen2brain
Copy link
Collaborator

New Android example is here https://github.com/veandco/go-sdl2-examples/tree/master/examples/android . Thanks to static libs now it is really simple to build apk.

User needs to import "C" to export "main" function, https://github.com/veandco/go-sdl2-examples/blob/master/examples/android/main.go#L182 , and is used then in Java https://github.com/veandco/go-sdl2-examples/blob/master/examples/android/android/src/main/java/com/example/android/MyGame.java#L16 . Perhaps that can be somehow solved, i.e. with some function like SetMain.

@veeableful
Copy link
Contributor

Great work @gen2brain!

@veeableful veeableful added the enhancement This issue asks for enhancement in a specific part label Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue asks for enhancement in a specific part
Projects
None yet
Development

No branches or pull requests

2 participants