PDA

View Full Version : Can anyOne help me to translate these from openGLES1.1 to openGLES2.0?



m221539
04-08-2013, 06:58 PM
//I have no idea about this, can anyone help me //texture type is CCTexture2D, _Vertices type is CGPoint*,_Coords type is CGPoint*

glBindTexture(GL_TEXTURE_2D, texture.name);
glDisableClientState(GL_COLOR_ARRAY);

glColor4f(1, 1, 1, 1);
glVertexPointer(2, GL_FLOAT, 0, _Vertices);
glTexCoordPointer(2, GL_FLOAT, 0, _Coords);
glDrawArrays(GL_TRIANGLE_STRIP, 0, (GLsizei)_nVertices);

glDisable(GL_TEXTURE_2D);
glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);

glEnable(GL_TEXTURE_2D);
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);

mobeen
04-08-2013, 08:01 PM
Please don't double post in two forums at the same time to expect that people will read and answer quickly. This will frustrate readers more. Secondly, try to answer you query yourself first before posting it to forum as please help me convert this to that etc.

What have you tried so far?