mirror of https://github.com/axmolengine/axmol.git
21 lines
320 B
C++
21 lines
320 B
C++
|
|
#include "ImgSprite.h"
|
|
#include "CCTextureCache.h"
|
|
|
|
ImgSprite::ImgSprite(void)
|
|
{
|
|
}
|
|
|
|
ImgSprite::~ImgSprite(void)
|
|
{
|
|
}
|
|
|
|
ImgSprite* ImgSprite::CreateWithTexture(CCTexture2D* aTexture)
|
|
{
|
|
ImgSprite* pImg = new ImgSprite();
|
|
pImg->initWithTexture(aTexture);
|
|
pImg->autorelease();
|
|
|
|
return pImg;
|
|
}
|