MCPcopy Create free account
hub / github.com/axmolengine/axmol / create

Method create

tests/cpp-tests/Source/ShaderTest/ShaderTest.cpp:397–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395SpriteBlur::~SpriteBlur() {}
396
397SpriteBlur* 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
415bool SpriteBlur::initWithTexture(Texture2D* texture, const Rect& rect)
416{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithFileMethod · 0.45

Tested by

no test coverage detected