Hi there,
So basically I'm looking for a way with easily dealing with textures in OpenGL ES 2.0.
Anyway, my 1.0 code:
Now in OpenGL ES 2.0, glVertexPointer() is no longer implemented.
Could anyone point me in the right direction here? I tried a few google searches but seems 2.0 is still very new and tutorials don't seem to really exist yet.
So basically I'm looking for a way with easily dealing with textures in OpenGL ES 2.0.
Anyway, my 1.0 code:
Code:
glBindTexture(GL_TEXTURE_2D, _name);
glVertexPointer(3, GL_FLOAT, 0, vertices);
glTexCoordPointer(2, GL_FLOAT, 0, coordinates);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
Now in OpenGL ES 2.0, glVertexPointer() is no longer implemented.
Could anyone point me in the right direction here? I tried a few google searches but seems 2.0 is still very new and tutorials don't seem to really exist yet.