diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc/TextureCache.lua')
m--------- | meta/3rd/Cocos4.0 | 0 | ||||
-rw-r--r-- | meta/3rd/Cocos4.0/library/cc/TextureCache.lua | 101 |
2 files changed, 0 insertions, 101 deletions
diff --git a/meta/3rd/Cocos4.0 b/meta/3rd/Cocos4.0 new file mode 160000 +Subproject c0b2259e0d367561fd4563ae114b029b4dfe3a8 diff --git a/meta/3rd/Cocos4.0/library/cc/TextureCache.lua b/meta/3rd/Cocos4.0/library/cc/TextureCache.lua deleted file mode 100644 index 55753f10..00000000 --- a/meta/3rd/Cocos4.0/library/cc/TextureCache.lua +++ /dev/null @@ -1,101 +0,0 @@ ----@meta - ----@class cc.TextureCache :cc.Ref -local TextureCache={ } -cc.TextureCache=TextureCache - - - - ----* Reload texture from the image file.<br> ----* If the file image hasn't loaded before, load it.<br> ----* Otherwise the texture will be reloaded from the file image.<br> ----* param fileName It's the related/absolute path of the file image.<br> ----* return True if the reloading is succeed, otherwise return false. ----@param fileName string ----@return boolean -function TextureCache:reloadTexture (fileName) end ----* Unbind all bound image asynchronous load callbacks.<br> ----* since v3.1 ----@return self -function TextureCache:unbindAllImageAsync () end ----* Deletes a texture from the cache given a its key name.<br> ----* param key It's the related/absolute path of the file image.<br> ----* since v0.99.4 ----@param key string ----@return self -function TextureCache:removeTextureForKey (key) end ----* Purges the dictionary of loaded textures.<br> ----* Call this method if you receive the "Memory Warning".<br> ----* In the short term: it will free some resources preventing your app from being killed.<br> ----* In the medium term: it will allocate more resources.<br> ----* In the long term: it will be the same. ----@return self -function TextureCache:removeAllTextures () end ----* js NA<br> ----* lua NA ----@return string -function TextureCache:getDescription () end ----* Output to CCLOG the current contents of this TextureCache.<br> ----* This will attempt to calculate the size of each texture, and the total texture memory in use.<br> ----* since v1.0 ----@return string -function TextureCache:getCachedTextureInfo () end ----@overload fun(cc.Image:cc.Image,string:string):cc.Texture2D ----@overload fun(cc.Image0:string):cc.Texture2D ----@param image cc.Image ----@param key string ----@return cc.Texture2D -function TextureCache:addImage (image,key) end ----* Unbind a specified bound image asynchronous callback.<br> ----* In the case an object who was bound to an image asynchronous callback was destroyed before the callback is invoked,<br> ----* the object always need to unbind this callback manually.<br> ----* param filename It's the related/absolute path of the file image.<br> ----* since v3.1 ----@param filename string ----@return self -function TextureCache:unbindImageAsync (filename) end ----* Returns an already created texture. Returns nil if the texture doesn't exist.<br> ----* param key It's the related/absolute path of the file image.<br> ----* since v0.99.5 ----@param key string ----@return cc.Texture2D -function TextureCache:getTextureForKey (key) end ----* Get the file path of the texture<br> ----* param texture A Texture2D object pointer.<br> ----* return The full path of the file. ----@param texture cc.Texture2D ----@return string -function TextureCache:getTextureFilePath (texture) end ----* Reload texture from a new file.<br> ----* This function is mainly for editor, won't suggest use it in game for performance reason.<br> ----* param srcName Original texture file name.<br> ----* param dstName New texture file name.<br> ----* since v3.10 ----@param srcName string ----@param dstName string ----@return self -function TextureCache:renameTextureWithKey (srcName,dstName) end ----* Removes unused textures.<br> ----* Textures that have a retain count of 1 will be deleted.<br> ----* It is convenient to call this method after when starting a new Scene.<br> ----* since v0.8 ----@return self -function TextureCache:removeUnusedTextures () end ----* Deletes a texture from the cache given a texture. ----@param texture cc.Texture2D ----@return self -function TextureCache:removeTexture (texture) end ----* Called by director, please do not called outside. ----@return self -function TextureCache:waitForQuit () end ----* ----@param suffix string ----@return self -function TextureCache:setETC1AlphaFileSuffix (suffix) end ----* ----@return string -function TextureCache:getETC1AlphaFileSuffix () end ----* js ctor ----@return self -function TextureCache:TextureCache () end
\ No newline at end of file |