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

Method ChangeColorOfCurrentQuadVertices

src/engine/client/graphics_threaded.cpp:857–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855}
856
857void CGraphics_Threaded::ChangeColorOfCurrentQuadVertices(float r, float g, float b, float a)
858{
859 m_aColor[0].r = NormalizeColorComponent(r);
860 m_aColor[0].g = NormalizeColorComponent(g);
861 m_aColor[0].b = NormalizeColorComponent(b);
862 m_aColor[0].a = NormalizeColorComponent(a);
863
864 for(int i = 0; i < m_NumVertices; ++i)
865 {
866 SetColor(&m_aVertices[i], 0);
867 }
868}
869
870void CGraphics_Threaded::ChangeColorOfQuadVertices(size_t QuadOffset, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
871{

Callers

nothing calls this directly

Calls 1

NormalizeColorComponentFunction · 0.85

Tested by

no test coverage detected