CCTextureCache的多线程加载原理和使用
摘要:
做引擎的时候,遇到一个texture的异步加载,这里将具体的原理和使用方法贴出来,后面根据浏览器的特性做修改移植。voidCCTextureCache::addImageAsync(constchar *path, CCObject *target, SEL_CallFuncO selector){ CCAssert(path != NULL, "TextureCache: fileimage MUST not be NULL"); CCTexture2D *texture = NULL; // optimization std::string pathKey = path 阅读全文
posted @ 2012-03-15 15:44 SeanLin 阅读(7588) 评论(0) 推荐(0) 编辑