MCPcopy Create free account
hub / github.com/SFML/SFML / setFillColor

Method setFillColor

src/SFML/Graphics/Text.cpp:478–492  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

476
477////////////////////////////////////////////////////////////
478void 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////////////////////////////////////////////////////////////

Callers 15

Text.test.cppFile · 0.45
Render.test.cppFile · 0.45
Shape.test.cppFile · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
ApplicationMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
SurroundMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected