iOS OpenGL ES woes
iOS OpenGL ES woes
- Subject: iOS OpenGL ES woes
- From: Vincent Habchi <email@hidden>
- Date: Tue, 02 Jul 2013 17:27:37 +0200
Hi folks,
I am trying to develop a demo application (DEM viewer) on iOS for educational purposes. I am fairly fluent with OpenGL but this my first try at an iOS app (I usually do OS X development). My problem is that albeit I seem to have abided by all terms of what’s described in the ‘Drawing with OpenGL ES’ document, nothing appears on screen.
I create a window/view controller/view with an opaque CAEAGLLayer. I alloc everything, EAGLContext, frame buffer, render buffer, call [_glContext renderBufferStorage:fromDrawable], etc. check if my frame buffer is complete (it is) and eventually I just try to clear the display to blue via a glClearColor (0, 0, 1, 1) in the -viewDidLoad: method (calling glFlush () immediately after). Nothing happens (on the simulator): I get a white screen.
I have fiddled with some controls in IB, but to no avail.
Has anybody any hint?
Thanks!
Vincent
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden