Skip to main content

CCTextureAtlas

CCTextureAtlas

Cocos2D

Inheritance: System.Object

Constructors

CCTextureAtlas()

CCTextureAtlas()()

Fields

m_pQuads(Cocos2D.CCRawListCocos2D.CCV3F_C4B_T2F_Quad)
m_pTexture(Cocos2D.CCTexture2D)

Properties

Capacity(System.Int32)
IsAntialiased(System.Boolean)
Texture(Cocos2D.CCTexture2D)
TotalQuads(System.Int32)

Methods

Create(CCTexture2D, int)

Cocos2D.CCTextureAtlas Create(CCTexture2D, int)(Cocos2D.CCTexture2D texture, System.Int32 capacity)
Parameters:
texture (Cocos2D.CCTexture2D)
capacity (System.Int32)
Returns:
Cocos2D.CCTextureAtlas

Create(string, int)

Cocos2D.CCTextureAtlas Create(string, int)(System.String file, System.Int32 capacity)
Parameters:
file (System.String)
capacity (System.Int32)
Returns:
Cocos2D.CCTextureAtlas

DrawNumberOfQuads(int)

DrawNumberOfQuads(int)(System.Int32 n)
Parameters:
n (System.Int32)

DrawNumberOfQuads(int, int)

DrawNumberOfQuads(int, int)(System.Int32 n, System.Int32 start)
Parameters:
n (System.Int32)
start (System.Int32)

DrawQuads()

DrawQuads()()

FillWithEmptyQuadsFromIndex(int, int)

FillWithEmptyQuadsFromIndex(int, int)(System.Int32 index, System.Int32 amount)
Parameters:
index (System.Int32)
amount (System.Int32)

IncreaseTotalQuadsWith(int)

IncreaseTotalQuadsWith(int)(System.Int32 amount)
Parameters:
amount (System.Int32)

InitWithFile(string, int)

System.Boolean InitWithFile(string, int)(System.String file, System.Int32 capacity)
Parameters:
file (System.String)
capacity (System.Int32)
Returns:
System.Boolean

InitWithTexture(CCTexture2D, int)

System.Boolean InitWithTexture(CCTexture2D, int)(Cocos2D.CCTexture2D texture, System.Int32 capacity)
Parameters:
texture (Cocos2D.CCTexture2D)
capacity (System.Int32)
Returns:
System.Boolean

InsertQuad(ref CCV3F_C4B_T2F_Quad, int)

InsertQuad(ref CCV3F_C4B_T2F_Quad, int)(Cocos2D.CCV3F_C4B_T2F_Quad quad, System.Int32 index)
Parameters:
quad (Cocos2D.CCV3F_C4B_T2F_Quad)
index (System.Int32)

InsertQuadFromIndex(int, int)

InsertQuadFromIndex(int, int)(System.Int32 oldIndex, System.Int32 newIndex)
Parameters:
oldIndex (System.Int32)
newIndex (System.Int32)

MoveQuadsFromIndex(int, int)

MoveQuadsFromIndex(int, int)(System.Int32 index, System.Int32 newIndex)
Parameters:
index (System.Int32)
newIndex (System.Int32)

MoveQuadsFromIndex(int, int, int)

MoveQuadsFromIndex(int, int, int)(System.Int32 oldIndex, System.Int32 amount, System.Int32 newIndex)
Parameters:
oldIndex (System.Int32)
amount (System.Int32)
newIndex (System.Int32)

RemoveAllQuads()

RemoveAllQuads()()

RemoveQuadAtIndex(int)

RemoveQuadAtIndex(int)(System.Int32 index)
Parameters:
index (System.Int32)

RemoveQuadsAtIndex(int, int)

RemoveQuadsAtIndex(int, int)(System.Int32 index, System.Int32 amount)
Parameters:
index (System.Int32)
amount (System.Int32)

ResizeCapacity(int)

System.Boolean ResizeCapacity(int)(System.Int32 newCapacity)
Parameters:
newCapacity (System.Int32)
Returns:
System.Boolean

ToString()

System.String ToString()()
Returns:
System.String
Example

UpdateQuad(ref CCV3F_C4B_T2F_Quad, int)

UpdateQuad(ref CCV3F_C4B_T2F_Quad, int)(Cocos2D.CCV3F_C4B_T2F_Quad quad, System.Int32 index)
Parameters:
quad (Cocos2D.CCV3F_C4B_T2F_Quad)
index (System.Int32)