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

Method setOutlineColor

src/SFML/Graphics/Text.cpp:496–510  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

494
495////////////////////////////////////////////////////////////
496void 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////////////////////////////////////////////////////////////

Callers 6

Text.test.cppFile · 0.45
Shape.test.cppFile · 0.45
mainFunction · 0.45
mainFunction · 0.45
DemoTextMethod · 0.45
updateGlyphBoxMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected