# Android, iOS

**URL:** <https://discourse.libsdl.org/t/android-ios/21876>\
**Category:** SDL Development\
**Created:** [August 18, 2016, 3:49am UTC](https://discourse.libsdl.org/t/android-ios/21876 "2016-08-18T03:49:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Andrews](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/jack_andrews/32/2437_2.png) [@Jack\_Andrews](https://discourse.libsdl.org/u/Jack_Andrews)\
**Post date:** [August 18, 2016, 3:49am UTC](https://discourse.libsdl.org/t/android-ios/21876/1 "2016-08-18T03:49:28Z")

</div>

Hi guys,

The thread on WinXP prompts me to ask about devices and “the future”. I  
haven’t tried SDL on my phone yet (I have no experience developing for  
android/iOS).

I imagine that SDL is suited to the small screen where each app seems to  
have a different look and feel.

I notice SDL\_ttf builds on android/ios - does anyone use cairo or pango on  
devices? Is there any FOSS UI lib that you’d consider an alternative to  
SDL for small to large hardware?

Or should a UI be custom on each platform? I guess that’s proved to be not  
the case on laptops and desktops…

jack.

---

<div class="post-metadata">

**Author:** ![Ben\_Henning](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/ac91a4/32.png) [@Ben\_Henning](https://discourse.libsdl.org/u/Ben_Henning)\
**Post date:** [August 18, 2016, 4:40am UTC](https://discourse.libsdl.org/t/android-ios/21876/2 "2016-08-18T04:40:01Z")

</div>

I could be wrong about a few of these things, but as I understand SDL  
likely just uses OpenGL when rendering on iOS/Android. You can retrieve  
context information about the GL context from SDL, so any GUI system that  
can render using OpenGL is interoperable with SDL. In terms of getting  
input, SDL makes it pretty easy to poll for input agnostic of platform and  
piping that over to a UI system is generally pretty simple. If you’re  
interested in a higher level UI library or perhaps the UI library built  
into Android/iOS, I’m not really sure how easy/hard that would be to  
interoperate with SDL. I get a bit lost at that point. :)On Wed, Aug 17, 2016 at 8:49 PM, Jack Andrews wrote:

> Hi guys,
> 
> The thread on WinXP prompts me to ask about devices and “the future”. I  
> haven’t tried SDL on my phone yet (I have no experience developing for  
> android/iOS).
> 
> I imagine that SDL is suited to the small screen where each app seems to  
> have a different look and feel.
> 
> I notice SDL\_ttf builds on android/ios - does anyone use cairo or pango on  
> devices? Is there any FOSS UI lib that you’d consider an alternative to  
> SDL for small to large hardware?
> 
> Or should a UI be custom on each platform? I guess that’s proved to be  
> not the case on laptops and desktops…
> 
> jack.
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![leagor](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/l/41988e/32.png) [@leagor](https://discourse.libsdl.org/u/leagor)\
**Post date:** [August 19, 2016, 1:49am UTC](https://discourse.libsdl.org/t/android-ios/21876/3 "2016-08-19T01:49:09Z")

</div>

SDL can be used for mobile devices and PC. Mobile devices include small screen mobile phones and large screen Pad.

SDL just provides a low level API, like the rendered image. You need to write a window system to get it to adapt to all the devices. I am sure that the system can be completed, and it can be achieved very well.

For the rendering of the image, the latest app based SDL have suggested using GPU. To Android and iOS, that is OpenGL ES2.

By the way, I am writing a SDK based SDL([https://github.com/freeors/Rose](https://github.com/freeors/Rose)), I have used it to write several app, these app can run on iOS(Phones/Pad), Android(Phones/Pad) and Windows(PC)?
