| 395 | SpriteBlur::~SpriteBlur() {} |
| 396 | |
| 397 | SpriteBlur* SpriteBlur::create(const char* pszFileName) |
| 398 | { |
| 399 | SpriteBlur* pRet = new SpriteBlur(); |
| 400 | bool result = pRet->initWithFile(""); |
| 401 | AXLOGD("Test call Sprite::initWithFile with bad file name result is : {}", result ? "true" : "false"); |
| 402 | |
| 403 | if (pRet->initWithFile(pszFileName)) |
| 404 | { |
| 405 | pRet->autorelease(); |
| 406 | } |
| 407 | else |
| 408 | { |
| 409 | AX_SAFE_DELETE(pRet); |
| 410 | } |
| 411 | |
| 412 | return pRet; |
| 413 | } |
| 414 | |
| 415 | bool SpriteBlur::initWithTexture(Texture2D* texture, const Rect& rect) |
| 416 | { |
nothing calls this directly
no test coverage detected