///////////////////////////////////////////////////////
| 476 | |
| 477 | //////////////////////////////////////////////////////////// |
| 478 | void Text::setFillColor(Color color) |
| 479 | { |
| 480 | if (color != m_fillColor) |
| 481 | { |
| 482 | m_fillColor = color; |
| 483 | |
| 484 | // Change vertex colors directly, no need to update whole geometry |
| 485 | // (if geometry is updated anyway, we can skip this step) |
| 486 | if (!m_geometryNeedUpdate) |
| 487 | { |
| 488 | for (auto& vertex : m_vertices) |
| 489 | vertex.color = m_fillColor; |
| 490 | } |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | |
| 495 | //////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected