Opengl es COCOS2DX开放式总账第2.0版

Opengl es COCOS2DX开放式总账第2.0版,opengl-es,cocos2d-x,Opengl Es,Cocos2d X,我使用COCOS2DX。我尝试将以下语法cocos2d更改为cocos2dx OpenGL1.0中“glTexCoordPointer”的用途是什么 OpenGL 2.0中的相同语法是什么 你能帮我吗?经过长时间的搜索,我为ES 2.0找到了这个 OpenGL 2.0中的相同语法是 glVertexAttribPointer(kCCVertexAttrib_TexCoords,2,GL_FLOAT,GL_FALSE,0,坐标) 代码语法: ccGLBindTexture2D(舌头->getNam

我使用COCOS2DX。我尝试将以下语法cocos2d更改为cocos2dx

OpenGL1.0中“glTexCoordPointer”的用途是什么

OpenGL 2.0中的相同语法是什么


你能帮我吗?

经过长时间的搜索,我为ES 2.0找到了这个

OpenGL 2.0中的相同语法是 glVertexAttribPointer(kCCVertexAttrib_TexCoords,2,GL_FLOAT,GL_FALSE,0,坐标) 代码语法:

ccGLBindTexture2D(舌头->getName())

ccGLEnableVertexAttribs(kCCVertexAttribFlag_位置| KCCVertExattributeFlag_TexCoords)

glVertexAttribPointer(kCCVertexAttrib_位置,3,GL_浮动,GL_假, 0,顶点)

GLVERTEXATTRIBCPOINTER(kCCVertexAttrib_TexCoords,2,GL_FLOAT, GL_假,0,坐标)

gldrawArray(GL_三角形,0,4)

GlenableVertexAttributeArray(GL_纹理_2D)