SFML community forums

Bindings - other languages => Java => Topic started by: kryx on June 16, 2014, 10:41:22 pm

Title: Android
Post by: kryx on June 16, 2014, 10:41:22 pm
Hi,

Shall JSFML be available for IOS and Android soon? I've read that should be come^^

Thanks
Title: Re: Android
Post by: zsbzsb on June 17, 2014, 03:41:58 am
You read this where exactly? Just because the core C++ version of SFML is coming to mobile does not mean the bindings are.
Title: Re: Android
Post by: pdinklag on June 26, 2014, 11:13:43 am
Isn't SFML's Android binding implemented in Java anyway? Or doesn't it at least provide a Java API? (if not, it really should)

In any event, JSFML is not related to the Android binding. I trust that whenever it is officially released, Laurent will create a separate forum for it.
Title: Re: Android
Post by: eXpl0it3r on June 26, 2014, 11:24:06 am
Isn't SFML's Android binding implemented in Java anyway? Or doesn't it at least provide a Java API? (if not, it really should)
No, we're using the NDK, so there's not Java directly involved.
Java API for C++, how would that work?

In any event, JSFML is not related to the Android binding. I trust that whenever it is officially released, Laurent will create a separate forum for it.
Android support is not just a binding, but it's built into SFML. You use the NDK and set the right CMake flag and you end up with Android libs.
Title: Re: Android
Post by: pdinklag on June 27, 2014, 09:33:14 pm
No, we're using the NDK, so there's not Java directly involved.
Java API for C++, how would that work?
Well, that's exactly what JSFML is. Except for a few types mapped to Java, all the functionality happens in plain old SFML. The delegation is implemented natively, ie in C++.

Android support is not just a binding, but it's built into SFML. You use the NDK and set the right CMake flag and you end up with Android libs.
Hm, that means that JSFML should work fine on Android if the delegation was compiled for Android as well and included in the package. Other than that, no changes should be required.

However, Android development is uncharted area for me and I am one of the few people left that despise mobiles... :D