OpenGL ES 1.1 Vertex Buffer Object Not Working

你离开我真会死。 提交于 2019-12-05 14:06:21
luke

I'm not experienced in the differences between OpenGL and OpenGL ES, but I'm not seeing any calls to glEnableVertexAttribArray() in your code.

The function is suspiciously absent in the OpenGL ES 1.1 docs, but is in 2.0, and is being used in Apple's OpenGL ES VBO article (thanks JSPerfUnkn0wn).

Here are some other good (though, non-ES) tutorials on Vertex Buffer Objects, and Index Buffer Objects.

Unless I'm missing something, where are you loading the textures? You're setting texture coordinates but I see no glBindTexture. And I'm also assuming alpha is a valid value.

See Apple OpenGL ES VBO article, namely from Listing 9-1, and this OpenGL ES VBO tutorial.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!