Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Beuc

Pages: [1]
1
General discussions / Re: SFML on Android - proof of concept
« on: April 21, 2012, 11:43:13 pm »
While I think of it: one of the Android-specific changes that will be needed is the ability to resume a paused or killed application, including reloading all the OpenGL resources.

2
General discussions / Re: SFML on Android - proof of concept
« on: April 21, 2012, 12:01:31 am »
Quote
Wow, must have been a real pain... ;D
Yeah, the build system played some nasty tricks on me, and the global static Context/Window, initialized before the SFML is even called, caused a crash that was difficult to track down :-\
Android C/C++ apps are also launched very peculiarly (it's really a Java environment that calls various hooks / event handlers in the application .so library, with android_main() usually started in a separate thread) - not a classic executable with a main()..

Quote
I am actually wondering if you have changed the public interface any?
No, but I expect we'll have to add new APIs do deal with:
- resources loading (everything is a zip-like .apk, not extracted, by default) - currently I extract assets/ in the cache directory and chdir() there as a work-around
- detect touchscreen presence (only clicks and drag&drop's, no "passive" mouse move)
- possibly specific features such as multi-touch, accelerometer, etc. - at least providing access to the global JNI object

3
General discussions / SFML on Android - proof of concept
« on: April 19, 2012, 09:24:02 pm »
Hi,

I am experimenting with SFML on Android :)
(It's currently based on 1.6, but with the new 2.0rc, I'm interested in upgrading ;))

The version is currently able to grab the Android app window and display sprites!
Check it out at:
https://github.com/Beuc/SFML-Android

Here's a sample application :
http://www.beuc.net/tmp/sfml-android/sfml-test-debug.apk
as well as its source code :
http://www.beuc.net/tmp/sfml-android/test-sfml.tar.gz

I hope this will help with porting SFML officially to Android.
What do you think? :)

It requires Android 2.3 or later, as it's based on NativeActivity (aka no line of Java is needed).
The changes consists of all the EGL initialization, change glVertex to GLES1's glDrawArray, and deal with a decent number of idiosyncrasies with the default Android app window. It's currently not possible to create additional windows, not sure if that's possible.
Post effects will probably require a full GLES2 version, as shader don't seem to be available as extensions in a GLES1 environment (unlike "desktop" OpenGL).

Screenshot :

4
General discussions / Re: SFML 2.0 RC
« on: April 15, 2012, 05:46:11 pm »
Nifty!

How do you plan work on porting to Android?

Actually I was experimenting with porting 1.6 to Android when I saw the announcement ;)

5
SFML wiki / Tutorial CMake
« on: November 04, 2011, 08:32:08 pm »
Hi,

I wrote a tutorial on the wiki about how to start a SFML project using CMake for the build system:
https://github.com/SFML/SFML/wiki/TutorialCMake

(Note: it's not about how to build SFML, but how to build your own project that uses SFML)

I'm new to both so I'd like to know if you think my explanations are right / complete :)

Pages: [1]
anything