axmol/tools/tolua++/CCAutoreleasePool.pkg

31 lines
495 B
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
#include "CCObject.h"
#include "CCMutableArray.h"
namespace cocos2d {
class CCAutoreleasePool : public CCObject
{
CCAutoreleasePool(void);
void addObject(CCObject *pObject);
void removeObject(CCObject *pObject);
void clear();
};
class CCPoolManager
{
CCPoolManager();
void finalize();
void push();
void pop();
void removeObject(CCObject* pObject);
void addObject(CCObject* pObject);
static CCPoolManager* getInstance();
};
}