///////////////////////////////////////////////////////
| 494 | |
| 495 | //////////////////////////////////////////////////////////// |
| 496 | void Text::setOutlineColor(Color color) |
| 497 | { |
| 498 | if (color != m_outlineColor) |
| 499 | { |
| 500 | m_outlineColor = color; |
| 501 | |
| 502 | // Change vertex colors directly, no need to update whole geometry |
| 503 | // (if geometry is updated anyway, we can skip this step) |
| 504 | if (!m_geometryNeedUpdate) |
| 505 | { |
| 506 | for (auto& vertex : m_outlineVertices) |
| 507 | vertex.color = m_outlineColor; |
| 508 | } |
| 509 | } |
| 510 | } |
| 511 | |
| 512 | |
| 513 | //////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected