This is my practice project according to the tutorial from www.raywenderlich.com see detail at: https://www.raywenderlich.com/3664/opengl-tutorial-for-ios-opengl-es-2-0
- OpenGL ES version
- On iOS there are v1.1 and v2.0, defined by
enum { kEAGLRenderingAPIOpenGLES1 = 1, //1.1版 kEAGLRenderingAPIOpenGLES2 = 2 //2.0版 }typedef NSUInteger EAGLRenderingAPI;
- On iOS there are v1.1 and v2.0, defined by
- 创建渲染缓冲区/Create Render buffer :
- 创建帧缓冲区/Create Frame buffer:
- 设置视窗口/Create View :
- 创建着色器
- 创建渲染源程序
- 顶点结构体
- 着色器
- 开始渲染