r/sfml•
MavyP

SFML 2.5.1 running on android with shader support

Posted Aug 1, 2019, 1:56 AM UTC

207
MavyPOP•

Hello everyone. I've forked SFML 2.5.1 and added support for GL ES 2.0 shaders. I also added better Java callbacks for interacting with the MainActivity so that the UI would timeout after 2 seconds. The original android example would not have a timer to force the UI to hide again after the home button area was touched (even if accidentally). I also wrote some touch screen control classes to make mapping areas, gesture deltas, and "virtual button" state management easier.

This is a project I've been working on for over a year now with SFML. It runs on windows, mac, linux, and android (duh!) It's open source and all the custom SFML-android stuff (like the touch screen control system) is macro'd out so you can build it for yourself even if you don't have android!

Have free code:
https://github.com/TheMaverickProgrammer/battlenetwork

3
matheusmoreira•

Awesome project!

2
LydianAlchemist•

wow. I love you.

I'm a huge fan of battle network!!

2
MavyPOP•

Well, you're about to have a lot of fun aren't you!

Keep a lookout for the @android branch merge here in the next few months. Lots of code cleanup and some new features will be added including auto-gen documentation:

https://battlenetwork.readthedocs.io/

1
BritishRedcoat•

This is dope!

2
LeeBronneJaimesse•

Incredible work!!!

Where did you learned how to program ? sfml more specifically ?

1
MavyPOP•

The docs mostly. For the custom changes I referred to the official native android examples and other github projects.

1