/HelloOpenGL

Practice of OpenGL ES on iOS

Primary LanguageObjective-C

HelloOpenGL

Brief Intro

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

Comments:

  1. 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;
  2. 创建渲染缓冲区/Create Render buffer :
  3. 创建帧缓冲区/Create Frame buffer:
  4. 设置视窗口/Create View :
  5. 创建着色器
  6. 创建渲染源程序
  7. 顶点结构体
  8. 着色器
  9. 开始渲染