Render multiple objects with OpenGL ES 2.0
The best way I found to do this is using VAOs in addition to VBOs. I’ll first answer you question using VBOs only. First of all, assume you have the two meshes of your two objects stored in the following arrays: GLuint _vertexBufferCube1; GLuint _vertexBufferCube2; where: GLfloat gCubeVertexData1[36] = {…}; GLfloat gCubeVertexData2[36] = {…}; And … Read more