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

Method create

core/2d/Transition.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58TransitionScene* TransitionScene::create(float t, Scene* scene)
59{
60 TransitionScene* pScene = new TransitionScene();
61 if (pScene->initWithDuration(t, scene))
62 {
63 pScene->autorelease();
64 return pScene;
65 }
66 AX_SAFE_DELETE(pScene);
67 return nullptr;
68}
69
70bool TransitionScene::initWithDuration(float t, Scene* scene)
71{

Callers

nothing calls this directly

Calls 3

createFunction · 0.85
autoreleaseMethod · 0.80
initWithDurationMethod · 0.45

Tested by

no test coverage detected