The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
iOS OpenGL ES2 Example Project
SparkyNZ


Joined: 02 Nov 2010
Posts: 72
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

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.
SparkyNZ


Joined: 02 Nov 2010
Posts: 72
I got it to work - silly vertex coordinates. For anyone else needing help, checkout my answer here:

http://stackoverflow.com/questions/36381339/cannot-get-opengl-es2-to-display-anything