glprogram专题

cocos2dx-GLProgram结合RenderTexture在安卓手机不能用

glProgram1 = new CCGLProgram();glProgram1->retain();glProgram1->initWithVertexShaderFilename("test.vsh", "test.fsh");glProgram1->addAttribute(kCCAttributeNameTexCoord, kCCVertexAttrib_TexCoords);//要设置