I am trying to port Tiny Seal Tiny Seal Part2 to OpenGL ES 2.0.
I tried that on older version (cocos2d-2.0-rc0a-x-2.0) of cocos2d-x it worked, but when I upgraded to “cocos2d-2.0-x-2.0.4” it stopped working. It shows one edge of terrain on leftmost side, thats it. I tried printing the _hillVertices which looks correct to me. Can anyone help me please?
Here is draw() function-
ccGLEnableVertexAttribs(kCCVertexAttribFlag_Position | kCCVertexAttribFlag_Color);
glVertexAttribPointer(kCCVertexAttrib_Position, 2, GL_FLOAT, GL_FALSE, 0, _hillVertices);
glVertexAttribPointer(kCCVertexAttrib_TexCoords, 2, GL_FLOAT, GL_FALSE, 0, _hillTexCoords);
glDrawArrays(GL_TRIANGLE_STRIP, 0, (GLsizei)_nHillVertices);