OpenGL(ES) demystified
summary
Compact walkthrough of OpenGL ES on iOS: how to create shaders, compile and link a program, upload interleaved vertex and index buffers, bind attributes and uniforms, and draw triangles with vertex and fragment shaders. Explains GLKit manages framebuffers and orientation and pauses GPU when backgrounded, the need to use the inverse-transpose normal transform for normals, the performance benefit of an interleaved vertex buffer layout, and using Xcode’s OpenGL ES debugger and Analyzer to fix and tune a working renderer.
AI-written summary · about
chapters (15)
- 0:00Introduction to OpenGL
- 1:12Core Graphics vs OpenGL
- 3:20Buffers and frame buffers
- 4:02GLKit simplifies OpenGL
- 6:27Rendering triangles in OpenGL
- 7:38Local and world coordinate spaces
- 9:53Model view projection matrix
- 13:01Vertex shader explained
- 14:46Rasterization and fragment shader
- 15:52Basic lighting with normals
- 18:18Texture mapping basics
- 20:27Loading and rendering 3D models
- 22:32Shader and geometry setup
- 23:35Drawing code in drawRect
- 27:30Three quick OpenGL tips
