MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / DrawAll

Method DrawAll

Source/Engine/Graphics/RenderTask.cpp:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void RenderTask::DrawAll()
40{
41 ScopeLock lock(TasksLocker);
42
43 // Sort tasks (by Order property)
44 Sorting::QuickSortObj(Tasks.Get(), Tasks.Count());
45
46 // Render all tasks
47 for (auto task : Tasks)
48 {
49 if (task->CanDraw())
50 task->OnDraw();
51 else
52 task->OnIdle();
53 }
54}
55
56RenderTask::RenderTask(const SpawnParams& params)
57 : ScriptingObject(params)

Callers

nothing calls this directly

Calls 6

QuickSortObjFunction · 0.85
OnIdleMethod · 0.80
GetMethod · 0.45
CountMethod · 0.45
CanDrawMethod · 0.45
OnDrawMethod · 0.45

Tested by

no test coverage detected