openframeworks/openFrameworks — pull request #1668 by julapy (2012-10-28 12:29:31+00:00)
Title: ios-feature-es2

ES2 for iOS can now be enabled in main.h,

`ofAppiPhoneWindow * window;`
`window = new ofAppiPhoneWindow();`
`window->enableES2Renderer();`

ofGLES2Renderer has been added.
its still very bare bones but has enough features to run and test a simple ES2 example.
- it loads a simple shader with position, color and modelViewProjection matrix.
- screen perspective setup is working.
- can draw OF shape primitives like ofRect, ofCircle etc...

all the shader code inside ofGLES2Renderer should eventually be done using ofShader,
but atm ofShader doesn't support ES1/ES2.... once it does, it will be easy to swap out.

theres an iosES2RendererExample in devApps that tests the ES2 code.

in response to issue #1178