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

Method FillRectangle

Source/Engine/Render2D/Render2D.cpp:1439–1448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437}
1438
1439void Render2D::FillRectangle(const Rectangle& rect, const Color& color)
1440{
1441 RENDER2D_CHECK_RENDERING_STATE;
1442
1443 Render2DDrawCall& drawCall = DrawCalls.AddOne();
1444 drawCall.Type = NeedAlphaWithTint(color) ? DrawCallType::FillRect : DrawCallType::FillRectNoAlpha;
1445 drawCall.StartIB = IBIndex;
1446 drawCall.CountIB = 6;
1447 WriteRect(rect, color);
1448}
1449
1450void Render2D::FillRectangle(const Rectangle& rect, const Color& color1, const Color& color2, const Color& color3, const Color& color4)
1451{

Callers 15

DrawMethod · 0.80
DrawMethod · 0.80
DrawSelfMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
DrawSelfMethod · 0.80
DrawSelfMethod · 0.80
DrawSelfMethod · 0.80
DrawSelfMethod · 0.80
DrawSelfMethod · 0.80
DrawMethod · 0.80

Calls 3

NeedAlphaWithTintFunction · 0.85
WriteRectFunction · 0.85
AddOneMethod · 0.80

Tested by

no test coverage detected