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

Method NonBatchSprites

tests/cpp-tests/Source/RendererTest/RendererTest.cpp:965–980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963}
964
965NonBatchSprites::NonBatchSprites()
966{
967 Size s = Director::getInstance()->getWinSize();
968 _spritesAnchor = Node::create();
969 _spritesAnchor->setPosition(0, 0);
970 addChild(_spritesAnchor);
971
972 _totalSprites = Label::createWithTTF(TTFConfig("fonts/arial.ttf"), "sprites");
973 _totalSprites->setColor(Color3B::YELLOW);
974 _totalSprites->enableOutline(Color4B::RED, 2);
975 _totalSprites->setPosition(s.width / 2, s.height / 2);
976
977 addChild(_totalSprites);
978
979 scheduleUpdate();
980}
981
982void NonBatchSprites::createSprite()
983{

Callers

nothing calls this directly

Calls 6

getInstanceFunction · 0.85
createFunction · 0.85
scheduleUpdateFunction · 0.85
setPositionMethod · 0.45
setColorMethod · 0.45
enableOutlineMethod · 0.45

Tested by

no test coverage detected