# iOS OpenGL ES2 Example Project

**URL:** <https://discourse.libsdl.org/t/ios-opengl-es2-example-project/21744>\
**Category:** SDL Development\
**Created:** [April 4, 2016, 1:20am UTC](https://discourse.libsdl.org/t/ios-opengl-es2-example-project/21744 "2016-04-04T01:20:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SparkyNZ](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@SparkyNZ](https://discourse.libsdl.org/u/SparkyNZ)\
**Post date:** [April 4, 2016, 1:20am UTC](https://discourse.libsdl.org/t/ios-opengl-es2-example-project/21744/1 "2016-04-04T01:20:26Z")

</div>

Hi. Can somebody please post an example SDL2 iOS project that uses OpenGL ES2?

I’m trying to display 2D triangles with SDL2 and ES2 and I cannot display anything. I’m able to display triangles with SDL2 and ES1 but not ES2. With ES1 I couldn’t display textures so I thought I would upgrade to ES2 instead…

Here’s a link to my (non-working) example project if anybody is interested.

[http://www.mediafire.com/download/nindc91ai0gw0mw/SDLPaul\_SolidTriangle\_ES2.zip](http://www.mediafire.com/download/nindc91ai0gw0mw/SDLPaul_SolidTriangle_ES2.zip)

I don’t know if I have an SDL2 set-up issue or if I’m missing something in my ES2 code. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![SparkyNZ](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@SparkyNZ](https://discourse.libsdl.org/u/SparkyNZ)\
**Post date:** [April 4, 2016, 9:40am UTC](https://discourse.libsdl.org/t/ios-opengl-es2-example-project/21744/2 "2016-04-04T09:40:07Z")

</div>

I got it to work - silly vertex coordinates. For anyone else needing help, checkout my answer here:

> <https://stackoverflow.com/questions/36381339/cannot-get-opengl-es2-to-display-anything>
