iphone opengl es 2.0 custom build a gl view failed,but did not know why
问题 I want to build a opengl es 2.0 view extend from UIview. And flow this article:http://www.raywenderlich.com/3664/opengl-es-2-0-for-iphone-tutorial when I finished first step. everything runs wrong. It did not run as I throught. Here is my code: #import <UIKit/UIKit.h> #import <QuartzCore/QuartzCore.h> #import <OpenGLES/ES2/gl.h> #import <OpenGLES/ES2/glext.h> @interface NXGLES2View : UIView - (void) render; @end #import "NXGLES2View.h" @interface NXGLES2View () { CAEAGLLayer *eaglLayer_;