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

Method onEnter

tests/cpp-tests/Source/ParticleTest/ParticleTest.cpp:41–52  ·  view source on GitHub ↗

------------------------------------------------------------------ DemoFirework ------------------------------------------------------------------

Source from the content-addressed store, hash-verified

39//
40//------------------------------------------------------------------
41void DemoFirework::onEnter()
42{
43 ParticleDemo::onEnter();
44
45 _emitter = ParticleFireworks::create();
46 _emitter->retain();
47 _background->addChild(_emitter, 10);
48
49 _emitter->setTexture(Director::getInstance()->getTextureCache()->addImage(s_stars1));
50
51 setEmitterPosition();
52}
53
54std::string DemoFirework::subtitle() const
55{

Callers

nothing calls this directly

Calls 15

createFunction · 0.85
getInstanceFunction · 0.85
HSVClass · 0.85
setFontSizeFunction · 0.85
Color4BFunction · 0.85
leftFunction · 0.85
scheduleUpdateFunction · 0.85
getTextureCacheMethod · 0.80
setAngleMethod · 0.80
setSpeedVarMethod · 0.80
setRadialAccelMethod · 0.80
setRadialAccelVarMethod · 0.80

Tested by

no test coverage detected