Class CCAtlasNode

#include <Geode/cocos/base_nodes/CCAtlasNode.h>
classCCAtlasNode:publiccocos2d::CCNodeRGBA,publiccocos2d::CCTextureProtocol{ ... }

CCAtlasNode is a subclass of CCNode that implements the CCRGBAProtocol and CCTextureProtocol protocol It knows how to render a TextureAtlas object. If you are going to render a TextureAtlas consider subclassing CCAtlasNode (or a subclass of CCAtlasNode) All features from CCNode are valid, plus the following features:

  • opacity and RGB colors
Examples0
Public static methods1
staticcocos2d::CCAtlasNode*create(,
uinttileWidth
,
uinttileHeight
,
uintitemsToRender
)

creates a CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render

Public member functions17
virtualcocos2d::CCTextureAtlas*getTextureAtlas()
No description provided
virtualvoidsetTextureAtlas()
No description provided
virtualcocos2d::ccBlendFuncgetBlendFunc()
No description provided
virtualvoidsetBlendFunc()
No description provided
virtualuintgetQuadsToDraw()
No description provided
virtualvoidsetQuadsToDraw(
uintvar
)
No description provided
boolinitWithTileFile(,
uinttileWidth
,
uinttileHeight
,
uintitemsToRender
)

initializes an CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render

boolinitWithTexture(,
uinttileWidth
,
uinttileHeight
,
uintitemsToRender
)

initializes an CCAtlasNode with a texture the width and height of each item measured in points and the quantity of items to render

virtualvoidupdateAtlasValues()

updates the Atlas (indexed vertex array). Shall be overridden in subclasses

virtualvoiddraw()
No description provided
virtualcocos2d::CCTexture2D*getTexture()

returns the used texture

virtualvoidsetTexture()

sets a new texture. it will be retained

virtualboolisOpacityModifyRGB()
No description provided
virtualvoidsetOpacityModifyRGB(
boolisOpacityModifyRGB
)
No description provided
virtualcocos2d::ccColor3Bconst&getColor()
No description provided
virtualvoidsetColor()
No description provided
virtualvoidsetOpacity(
_::GLubyteopacity
)
No description provided
Fields3
boolm_bIsOpacityModifyRGB
;
No description provided
_::GLintm_nUniformColor
;
No description provided
boolm_bIgnoreContentScaleFactor
;
No description provided
Protected member functions0
Protected fields8
uintm_uItemsPerRow
;

//! chars per row

uintm_uItemsPerColumn
;

//! chars per column

uintm_uItemWidth
;

//! width of each char

uintm_uItemHeight
;

//! height of each char

cocos2d::ccColor3Bm_tColorUnmodified
;
No description provided
;
No description provided
;
No description provided
uintm_uQuadsToDraw
;
No description provided