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

Method init

tests/cpp-tests/Source/EffekseerTest/EffekseerTest.cpp:73–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool EffekseerTest::init()
74{
75 if (!TestCase::init())
76 return false;
77
78
79 auto rsize = _director->getRenderView()->getDesignResolutionSize();
80
81 //auto sprite = Sprite::create("HelloWorld.png");
82 //sprite->setPosition(Vec2(320, 200));
83 //this->addChild(sprite, 0);
84
85 // for update
86 this->scheduleUpdate();
87
88 /**
89 efk::EffectManagerのインスタンスを生成します。
90
91 You create an instance of efk::EffectManager.
92
93 您創建一個efk::EffectManager的實例。
94
95 您创建一个efk::EffectManager的实例。
96 */
97 manager = efk::EffectManager::create(rsize);
98
99 return true;
100}
101
102void EffekseerTest::update(float delta)
103{

Callers

nothing calls this directly

Calls 3

createFunction · 0.85
scheduleUpdateMethod · 0.80
initFunction · 0.50

Tested by

no test coverage detected