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

Author Topic: rendering OpenGL ES in Android and iOS?  (Read 2744 times)

0 Members and 2 Guests are viewing this topic.

BrainLobo

  • Guest
rendering OpenGL ES in Android and iOS?
« on: October 05, 2019, 10:34:41 am »
So I need to create a multi-platform app, and I'm a newbie in both SFML and Android/iOS programming.

The idea is to create a core library in C++ (or maybe Rust, if possible) using SFML, to handle the logic and the rendering of the main widget. Then a native app for each platform that uses this lib. So the controls are native, but all the logic and the OpenGL rendering is done on the core lib.

Is it possible to have a native Android/iOS app that has a central widget, and the core lib to render on it?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: rendering OpenGL ES in Android and iOS?
« Reply #1 on: October 05, 2019, 12:10:38 pm »
There is an unofficial Rust binding for SFML: https://github.com/jeremyletang/rust-sfml
Keep in mind that you need actually 3 libraries for SFML if you use Rust: Rust (API), C (binding) and C++ (implementation).

How well Rust is supported on Android/iOS is another story, and you would need to clarify that yourself.
Would be definitely interesting if you went this route and could share some experiences here! :)
Keep in mind that going with C++ is probably the easier route, but you can also do that as a first step and in a second step integrate Rust.

Is it possible to have a native Android/iOS app that has a central widget, and the core lib to render on it?
If I understand you correctly, you would just want to render with SFML and do the logic from your library. I don't see why this shouldn't work.

For tutorials on how to use SFML in iOS and Android, have a look at the wiki:
https://github.com/SFML/SFML/wiki/Tutorials
Both iOS and Android ports are not that actively maintained, so it's possible that you need to search a bit if you hit any roadblocks.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything