TextureCache::getInstance()->addImageAsync("land.png", CC_CALLBACK_1(Loading::loadedCallback,this) );
TextureCache::getInstance()->addImage();//无回调
void Loading::loadedCallback(cocos2d::Texture2D *texture)
{}
Texture2D* barTexture = TextureCache::getInstance()->addImage("bar.png");//调用TextureCache内容
Sprite* barSprite = Sprite::createWithTexture(barTexture);
addChild(barSprite);
SpriteFrameCache::getInstance()->addSpriteFramesWithFile("gameArts-hd.plist","gameArts-hd.png");
initWithSpriteFrameName(str->getCString());