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

Method NodeOpaqueTest

tests/cpp-tests/Source/NodeTest/NodeTest.cpp:835–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833/// NodeOpaqueTest
834
835NodeOpaqueTest::NodeOpaqueTest()
836{
837 Sprite* background = nullptr;
838
839 for (int i = 0; i < 50; i++)
840 {
841 background = Sprite::create("Images/background1.png");
842 background->setBlendFunc(BlendFunc::ALPHA_PREMULTIPLIED);
843 background->setAnchorPoint(Vec2::ZERO);
844 addChild(background);
845 }
846}
847
848std::string NodeOpaqueTest::title() const
849{

Callers

nothing calls this directly

Calls 3

createFunction · 0.85
setBlendFuncMethod · 0.45
setAnchorPointMethod · 0.45

Tested by

no test coverage detected