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

Method init

tests/cpp-tests/Source/BugsTest/Bug-899.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34using namespace ax;
35
36bool Bug899Layer::init()
37{
38 // Director::getInstance()->enableRetinaDisplay(true);
39 if (BugsTestBase::init())
40 {
41 auto bg = Sprite::create("Images/bugs/RetinaDisplay.jpg");
42 addChild(bg, 0);
43 bg->setAnchorPoint(Vec2::ZERO);
44
45 return true;
46 }
47 return false;
48}

Callers 2

createMethod · 0.45
createMethod · 0.45

Calls 3

createFunction · 0.85
initFunction · 0.50
setAnchorPointMethod · 0.45

Tested by 2

createMethod · 0.36
createMethod · 0.36