In the stock OpenGL ES app on iOS 5.1, are they really using the vertex arrays they declare?
- 阅读更多 关于 In the stock OpenGL ES app on iOS 5.1, are they really using the vertex arrays they declare?
问题 In the stock OpenGL ES app you get (when you create a new "OpenGL game" in XCode), in the setupGL function, there is: glEnable(GL_DEPTH_TEST); //glGenVertexArraysOES( 1, &_vertexArray ) ; // va's are not being used! //glBindVertexArrayOES( _vertexArray ) ; // we comment these out // to no ill effect -- are these calls extraneous? glGenBuffers( 1, &_vertexBuffer ) ; glBindBuffer( GL_ARRAY_BUFFER, _vertexBuffer ) ; glBufferData( GL_ARRAY_BUFFER, sizeof(gCubeVertexData), gCubeVertexData, GL