Requesting short OpenGL ES example - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: Requesting short OpenGL ES example (/thread-2054.html)
Requesting short OpenGL ES example - SafariAl - Dec 10, 2008 09:34 AM
Hello, new to these forums, and new to iPhone development. I've been following some tutorials lately, learning new things and ways to interact with the interface builder, but none of the tutorials help integrate OpenGL ES into an app. If it wouldn't be too much trouble, could someone find, or type up an example of a simple square in OpenGL ES? I know OpenGL, but the initiation of the window and setting up everything has got me stumped. Also, if you have any good links to websites with samples (or even threads on this site) that can help me in this field? Thanks, and sorry if I managed to do something against the rules by posting this.
Requesting short OpenGL ES example - Bachus - Dec 10, 2008 01:09 PM
In Xcode start a new project (File->New Project). On the left pick iPhone OS->Application and then on the right pick OpenGL ES Application. Everything will be all setup and it even includes code to draw a spinning quad.
Requesting short OpenGL ES example - SafariAl - Dec 10, 2008 01:39 PM
Of course! I feel stupid! Thanks for the pointer, and sorry for not checking that beforehand.