用openGL函数画纹理的坐标问题、、?

由于撸主对opengl不熟、就有了下面的问题:
CCPoint ver] =
{
ccp(100.0f, 100.0f),
ccp(220.0f, 100.0f),
ccp(100.0f, 180.0f),
ccp(220.0f, 180.0f),
};
CCPoint tex] =
{
ccp(0.0f, 1.0f),
ccp(1.0f, 1.0f),
ccp(0.0f, 0.0f),
ccp(1.0f, 0.0f),
};

ccGLBindTexture2D(CCTextureCache::sharedTextureCache()->addImage("HelloWorld.png")->getName());
glBlendFunc(CC_BLEND_SRC, CC_BLEND_DST);
ccGLEnableVertexAttribs(kCCVertexAttribFlag_Position | kCCVertexAttribFlag_TexCoords);

glVertexAttribPointer(kCCVertexAttrib_Position, 2, GL_FLOAT, GL_FALSE, 0, ver);
glVertexAttribPointer(kCCVertexAttrib_TexCoords, 2, GL_FLOAT, GL_FALSE, 0, tex);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);

显示的位置与画的位置不一样、、、、显示的位置该怎么对上?

你的问题解决了吗。 我遇到了同样的问题。

调整顶点坐标到合适的位置。。