| 1437 | } |
| 1438 | |
| 1439 | void 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 | |
| 1450 | void Render2D::FillRectangle(const Rectangle& rect, const Color& color1, const Color& color2, const Color& color3, const Color& color4) |
| 1451 | { |