mirror of https://github.com/axmolengine/axmol.git
issue #116
This commit is contained in:
parent
6a4af3bcfd
commit
73d6ecb232
|
@ -26,7 +26,6 @@ THE SOFTWARE.
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include "CCAtlasNode.h"
|
#include "CCAtlasNode.h"
|
||||||
#include "support\image_support\TGAlib.h"
|
|
||||||
namespace cocos2d {
|
namespace cocos2d {
|
||||||
|
|
||||||
typedef std::map<std::string, int> StringToIntegerDictionary;
|
typedef std::map<std::string, int> StringToIntegerDictionary;
|
||||||
|
@ -46,10 +45,11 @@ namespace cocos2d {
|
||||||
You SHOULD not use this class.
|
You SHOULD not use this class.
|
||||||
Instead, use the newer TMX file format: CCTMXTiledMap
|
Instead, use the newer TMX file format: CCTMXTiledMap
|
||||||
*/
|
*/
|
||||||
|
struct sImageTGA;
|
||||||
class CCX_DLL CCTileMapAtlas : public CCAtlasNode
|
class CCX_DLL CCTileMapAtlas : public CCAtlasNode
|
||||||
{
|
{
|
||||||
/** TileMap info */
|
/** TileMap info */
|
||||||
CCX_PROPERTY(tImageTGA*, m_pTGAInfo, TGAInfo);
|
CCX_PROPERTY(struct sImageTGA*, m_pTGAInfo, TGAInfo);
|
||||||
public:
|
public:
|
||||||
CCTileMapAtlas();
|
CCTileMapAtlas();
|
||||||
virtual ~CCTileMapAtlas();
|
virtual ~CCTileMapAtlas();
|
||||||
|
@ -75,7 +75,7 @@ namespace cocos2d {
|
||||||
void loadTGAfile(const char *file);
|
void loadTGAfile(const char *file);
|
||||||
void calculateItemsToRender();
|
void calculateItemsToRender();
|
||||||
void updateAtlasValueAt(ccGridSize pos, ccColor3B value, int index);
|
void updateAtlasValueAt(ccGridSize pos, ccColor3B value, int index);
|
||||||
void CCTileMapAtlas::updateAtlasValues();
|
void updateAtlasValues();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// x,y to altas dicctionary
|
/// x,y to altas dicctionary
|
||||||
|
|
|
@ -24,6 +24,7 @@ THE SOFTWARE.
|
||||||
#include "CCTileMapAtlas.h"
|
#include "CCTileMapAtlas.h"
|
||||||
#include "CCXFileUtils.h"
|
#include "CCXFileUtils.h"
|
||||||
#include "CCTextureAtlas.h"
|
#include "CCTextureAtlas.h"
|
||||||
|
#include "support\image_support\TGAlib.h"
|
||||||
|
|
||||||
namespace cocos2d {
|
namespace cocos2d {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue