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

Method addEffect

tests/cpp-tests/Source/ShaderTest/ShaderTest2.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106 }
107 void addEffect(Effect* effect, ssize_t order)
108 {
109 effect->retain();
110 effect->setTarget(this);
111
112 _effects.emplace_back(std::make_tuple(order, effect, QuadCommand()));
113
114 std::sort(std::begin(_effects), std::end(_effects), tuple_sort);
115 }
116
117 void draw(Renderer* renderer, const Mat4& transform, uint32_t flags) override
118 {

Callers

nothing calls this directly

Calls 6

sortFunction · 0.50
beginFunction · 0.50
endFunction · 0.50
retainMethod · 0.45
setTargetMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected