MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / sortElements

Method sortElements

src/Core/Graphics/Canvas.cpp:199–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void Canvas::sortElements()
200 {
201 std::sort(m_elements.begin(), m_elements.end(),
202 [](const auto& elem1, const auto& elem2) {
203 return elem1->layer > elem2->layer;
204 });
205 }
206
207 Canvas::Canvas(unsigned int width, unsigned int height)
208 {

Callers 1

renderMethod · 0.95

Calls 3

sortFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected