# Apple devices and the rendering api?

**URL:** <https://discourse.libsdl.org/t/apple-devices-and-the-rendering-api/47906>\
**Category:** Game Development\
**Created:** [December 18, 2023, 10:34pm UTC](https://discourse.libsdl.org/t/apple-devices-and-the-rendering-api/47906 "2023-12-18T22:34:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kingtoo400](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/kingtoo400/32/5026_2.png) [@Kingtoo400](https://discourse.libsdl.org/u/Kingtoo400)\
**Post date:** [December 18, 2023, 10:34pm UTC](https://discourse.libsdl.org/t/apple-devices-and-the-rendering-api/47906/1 "2023-12-18T22:34:53Z")

</div>

Hey everyone! Brand new here to the community and love the idea of using SDL for my game/engine development library! SDL covers all platforms that I wish to distribute, but a slight concern on iOS and macOS. Apple has depreciated opengl since I believe 2018(I may be wrong) and that leads to me believing SDL uses opengl for ios or macos for the rendering api during the export to those platforms.Does this library uses the metal api when the game has been exported to the apple devices?

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [December 19, 2023, 4:05pm UTC](https://discourse.libsdl.org/t/apple-devices-and-the-rendering-api/47906/2 "2023-12-19T16:05:06Z")

</div>

Yes, the SDL rendering API uses Metal by default on Apple platforms.

---

<div class="post-metadata">

**Author:** ![Kingtoo400](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/kingtoo400/32/5026_2.png) [@Kingtoo400](https://discourse.libsdl.org/u/Kingtoo400)\
**Post date:** [December 19, 2023, 9:12pm UTC](https://discourse.libsdl.org/t/apple-devices-and-the-rendering-api/47906/3 "2023-12-19T21:12:56Z")

</div>

Thank you for the reply! I was worried that in iOS ports, I thought it will be using opengl instead. Or even Mac ports. Dumb question, does sdl rendering api use metal for tvOS and possibly visionOS?

---

<div class="post-metadata">

**Author:** ![sjr](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sjr/32/5749_2.png) [@sjr](https://discourse.libsdl.org/u/sjr)\
**Post date:** [December 20, 2023, 2:30pm UTC](https://discourse.libsdl.org/t/apple-devices-and-the-rendering-api/47906/4 "2023-12-20T14:30:34Z")

</div>

It uses Metal on all Apple platforms that support Metal.
