|
| TextureCacheEmscripten () |
virtual | ~TextureCacheEmscripten () |
void | addImageAsync (const char *path, Object *target, SEL_CallFuncO selector) |
void | addImageAsyncCallBack_emscripten (AsyncStruct *data, unsigned char *imgData, int width, int height) |
var | addImageAsyncCallBack_emscripten ( var data, var imgData, var width, var height) |
local | addImageAsyncCallBack_emscripten ( local data, local imgData, local width, local height) |
| TextureCache () |
virtual | ~TextureCache () |
const char * | description (void) const |
Texture2D * | addImage (const std::string &filepath) |
| Returns a Texture2D object given an filename. More...
|
|
local | addImage ( local filepath) |
| Returns a Texture2D object given an filename. More...
|
|
virtual void | addImageAsync (const std::string &filepath, Object *target, SEL_CallFuncO selector) |
local | addImageAsync ( local filepath, local target, local selector) |
Texture2D * | addImage (Image *image, const std::string &key) |
| Returns a Texture2D object given an Image. More...
|
|
local | addImage ( local image, local key) |
| Returns a Texture2D object given an Image. More...
|
|
CC_DEPRECATED_ATTRIBUTE Texture2D * | addUIImage (Image *image, const char *key) |
local | addUIImage ( local image, local key) |
Texture2D * | getTextureForKey (const std::string &key) const |
| Returns an already created texture. More...
|
|
var | getTextureForKey ( var key) |
| Returns an already created texture. More...
|
|
local | getTextureForKey ( local key) |
| Returns an already created texture. More...
|
|
CC_DEPRECATED_ATTRIBUTE Texture2D * | textureForKey (const char *key) const |
local | textureForKey ( local key) |
void | removeAllTextures () |
| Purges the dictionary of loaded textures. More...
|
|
void | removeUnusedTextures () |
| Removes unused textures Textures that have a retain count of 1 will be deleted It is convenient to call this method after when starting a new Scene. More...
|
|
void | removeTexture (Texture2D *texture) |
| Deletes a texture from the cache given a texture. More...
|
|
void | removeTextureForKey (const std::string &key) |
| Deletes a texture from the cache given a its key name. More...
|
|
void | dumpCachedTextureInfo () const |
| Output to CCLOG the current contents of this TextureCache This will attempt to calculate the size of each texture, and the total texture memory in use. More...
|
|
| Object () |
| Constructor. More...
|
|
virtual | ~Object () |
void | release () |
| Release the ownership immediately. More...
|
|
void | retain () |
| Retains the ownership. More...
|
|
Object * | autorelease () |
| Release the ownership sometime soon automatically. More...
|
|
bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More...
|
|
unsigned int | retainCount () const |
| Returns the object's current reference count. More...
|
|
virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More...
|
|
virtual void | acceptVisitor (DataVisitor &visitor) |
virtual void | update (float dt) |