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

Method create

tests/cpp-tests/Source/ShaderTest/ShaderTest2.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80{
81public:
82 static EffectSprite* create(std::string_view filename)
83 {
84 auto ret = new EffectSprite;
85 if (ret->initWithFile(filename))
86 {
87 ret->autorelease();
88 return ret;
89 }
90 AX_SAFE_RELEASE(ret);
91 return nullptr;
92 }
93
94 void setEffect(Effect* effect)
95 {

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithFileMethod · 0.45

Tested by

no test coverage detected