diff --git a/cocos2dx/include/CCTileMapAtlas.h b/cocos2dx/include/CCTileMapAtlas.h index ca8146fdaf..902a984e08 100644 --- a/cocos2dx/include/CCTileMapAtlas.h +++ b/cocos2dx/include/CCTileMapAtlas.h @@ -26,7 +26,6 @@ THE SOFTWARE. #include #include #include "CCAtlasNode.h" -#include "support\image_support\TGAlib.h" namespace cocos2d { typedef std::map StringToIntegerDictionary; @@ -46,10 +45,11 @@ namespace cocos2d { You SHOULD not use this class. Instead, use the newer TMX file format: CCTMXTiledMap */ + struct sImageTGA; class CCX_DLL CCTileMapAtlas : public CCAtlasNode { /** TileMap info */ - CCX_PROPERTY(tImageTGA*, m_pTGAInfo, TGAInfo); + CCX_PROPERTY(struct sImageTGA*, m_pTGAInfo, TGAInfo); public: CCTileMapAtlas(); virtual ~CCTileMapAtlas(); @@ -75,7 +75,7 @@ namespace cocos2d { void loadTGAfile(const char *file); void calculateItemsToRender(); void updateAtlasValueAt(ccGridSize pos, ccColor3B value, int index); - void CCTileMapAtlas::updateAtlasValues(); + void updateAtlasValues(); protected: /// x,y to altas dicctionary diff --git a/cocos2dx/tileMap_parallax_nodes/CCTileMapAtlas.cpp b/cocos2dx/tileMap_parallax_nodes/CCTileMapAtlas.cpp index dbff405404..6636a17d55 100644 --- a/cocos2dx/tileMap_parallax_nodes/CCTileMapAtlas.cpp +++ b/cocos2dx/tileMap_parallax_nodes/CCTileMapAtlas.cpp @@ -24,6 +24,7 @@ THE SOFTWARE. #include "CCTileMapAtlas.h" #include "CCXFileUtils.h" #include "CCTextureAtlas.h" +#include "support\image_support\TGAlib.h" namespace cocos2d {