Here the solutions
Size screenSize = Director::getInstance()->getWinSize(); - No need sharedDirector()
SpriteFrameCache::getInstance()->addSpriteFramesWithFile("example.plist"); - No need sharedSpriteFrameCache
glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_POSITION, 2, GL_FLOAT, GL_FALSE, 0, vertices); - No need kCCVertexAttrib_Position
This will help for your conversion.