MCPcopy Create free account
hub / github.com/ddnet/ddnet / SetColor

Method SetColor

src/engine/client/graphics_threaded.cpp:832–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830}
831
832void CGraphics_Threaded::SetColor(float r, float g, float b, float a)
833{
834 CCommandBuffer::SColor NewColor;
835 NewColor.r = NormalizeColorComponent(r);
836 NewColor.g = NormalizeColorComponent(g);
837 NewColor.b = NormalizeColorComponent(b);
838 NewColor.a = NormalizeColorComponent(a);
839 std::fill(std::begin(m_aColor), std::end(m_aColor), NewColor);
840}
841
842void CGraphics_Threaded::SetColor(ColorRGBA Color)
843{

Callers 3

AppendTextContainerMethod · 0.45
RenderTextContainerMethod · 0.45
RenderMethod · 0.45

Calls 1

NormalizeColorComponentFunction · 0.85

Tested by

no test coverage detected