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

Method CanDraw

Source/Engine/Graphics/RenderTask.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool RenderTask::CanDraw() const
74{
75 if (SwapChain && SwapChain->GetWindow() && !SwapChain->GetWindow()->IsVisible() && !SwapChain->GetWindow()->GetSettings().ShowAfterFirstPaint)
76 return false;
77 return Enabled;
78}
79
80void RenderTask::OnDraw()
81{

Callers 1

DrawAllMethod · 0.45

Calls 4

GetWindowMethod · 0.80
GetSettingsMethod · 0.80
IsAllocatedMethod · 0.80
IsVisibleMethod · 0.45

Tested by

no test coverage detected