Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

aforty

macrumors 65832
Original poster
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:

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.