Skip to main content

CCTextureCache

CCTextureCache

Cocos2D

Inheritance: System.Object

Implements: System.IDisposable, Cocos2D.ICCSelectorProtocol

Fields

m_pTextures(System.Collections.Generic.DictionarySystem.String,Cocos2D.CCTexture2D)

Properties

this[string](Cocos2D.CCTexture2D)
SharedTextureCache(Cocos2D.CCTextureCache)

Methods

AddImage(byte[], string, SurfaceFormat)

Cocos2D.CCTexture2D AddImage(byte[], string, SurfaceFormat)(System.Byte[] data, System.String assetName, Microsoft.Xna.Framework.Graphics.SurfaceFormat format)
Parameters:
data (System.Byte[])
assetName (System.String)
format (Microsoft.Xna.Framework.Graphics.SurfaceFormat)
Returns:
Cocos2D.CCTexture2D

AddImage(string)

Cocos2D.CCTexture2D AddImage(string)(System.String fileimage)
Parameters:
fileimage (System.String)
Returns:
Cocos2D.CCTexture2D

AddImageAsync(string, Action)

AddImageAsync(string, Action)(System.String fileimage, System.ActionCocos2D.CCTexture2D action)
Parameters:
fileimage (System.String)
action (System.ActionCocos2D.CCTexture2D)

AddRawImage(T[], int, int, string, SurfaceFormat, bool)

Cocos2D.CCTexture2D AddRawImage(T[], int, int, string, SurfaceFormat, bool)(T[] data, System.Int32 width, System.Int32 height, System.String assetName, Microsoft.Xna.Framework.Graphics.SurfaceFormat format, System.Boolean premultiplied)
Parameters:
data (T[])
width (System.Int32)
height (System.Int32)
assetName (System.String)
format (Microsoft.Xna.Framework.Graphics.SurfaceFormat)
premultiplied (System.Boolean)
Returns:
Cocos2D.CCTexture2D

AddRawImage(T[], int, int, string, SurfaceFormat, bool, bool)

Cocos2D.CCTexture2D AddRawImage(T[], int, int, string, SurfaceFormat, bool, bool)(T[] data, System.Int32 width, System.Int32 height, System.String assetName, Microsoft.Xna.Framework.Graphics.SurfaceFormat format, System.Boolean premultiplied, System.Boolean mipMap)
Parameters:
data (T[])
width (System.Int32)
height (System.Int32)
assetName (System.String)
format (Microsoft.Xna.Framework.Graphics.SurfaceFormat)
premultiplied (System.Boolean)
mipMap (System.Boolean)
Returns:
Cocos2D.CCTexture2D

AddRawImage(T[], int, int, string, SurfaceFormat, bool, bool, CCSize)

Cocos2D.CCTexture2D AddRawImage(T[], int, int, string, SurfaceFormat, bool, bool, CCSize)(T[] data, System.Int32 width, System.Int32 height, System.String assetName, Microsoft.Xna.Framework.Graphics.SurfaceFormat format, System.Boolean premultiplied, System.Boolean mipMap, Cocos2D.CCSize contentSize)
Parameters:
data (T[])
width (System.Int32)
height (System.Int32)
assetName (System.String)
format (Microsoft.Xna.Framework.Graphics.SurfaceFormat)
premultiplied (System.Boolean)
mipMap (System.Boolean)
contentSize (Cocos2D.CCSize)
Returns:
Cocos2D.CCTexture2D

Contains(string)

System.Boolean Contains(string)(System.String assetFile)
Parameters:
assetFile (System.String)
Returns:
System.Boolean

Dispose()

Dispose()()
Example

DumpCachedTextureInfo()

DumpCachedTextureInfo()()

~CCTextureCache()

~CCTextureCache()()

PurgeSharedTextureCache()

PurgeSharedTextureCache()()

RemoveAllTextures()

RemoveAllTextures()()

RemoveTexture(CCTexture2D)

RemoveTexture(CCTexture2D)(Cocos2D.CCTexture2D texture)
Parameters:
texture (Cocos2D.CCTexture2D)

RemoveTextureForKey(string)

RemoveTextureForKey(string)(System.String textureKeyName)
Parameters:
textureKeyName (System.String)

RemoveUnusedTextures()

RemoveUnusedTextures()()

TextureForKey(string)

Cocos2D.CCTexture2D TextureForKey(string)(System.String key)
Parameters:
key (System.String)
Returns:
Cocos2D.CCTexture2D

UnloadContent()

UnloadContent()()

Update(float)

Update(float)(System.Single dt)
Parameters:
dt (System.Single)
Example