void _spAtlasPage_createTexture (spAtlasPage* self, const char* path) {
	CCTexture2D* texture = CCTextureCache::sharedTextureCache()->addImage(path);
	texture->retain();
	self->rendererObject = texture;
	self->width = texture->getPixelsWide();
	self->height = texture->getPixelsHigh();
}
void SpriteMask::setMask(const char *pMaskFile)
{
	if (_isSetMask)    return;

	_maskTexture = CCTextureCache::sharedTextureCache()->addImage(pMaskFile);
	//_maskTexture->setAliasTexParameters();
	_maskTexture->retain();

	CCNotificationCenter::sharedNotificationCenter()->addObserver(this, callfuncO_selector(SpriteMask::listenBackToForeground), EVNET_COME_TO_FOREGROUND, NULL);

	initProgram();

	_isSetMask = true;
}