Android: 2x glVertexAttribPointer()

Hey,

I have a question regarding VAs (vertex arrays) and VBOs (vertex array objects).

In OpenGL ES 2 on Android there are two functions called “glVertexAttribPointer”.
As far as I understand, one is for VBO (the one bound to GL_ARRAY_BUFFER).

But there is another method where I can directly pass a buffer with vertex information. And I do not create a VBO before, when I use this method. Is this the VA way then?

I’m just wondering because imho for VAs there must be done a call to glEnableClientState(GL_VERTEX_ARRAY), isn’t it?
But this is also not necessary when using the “glVertexAttribPointer” method with a buffer as parameter.

Thank you very much in advance!

Regards,
floyd

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.