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

Method SetColor4

src/engine/client/graphics_threaded.cpp:847–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847void CGraphics_Threaded::SetColor4(ColorRGBA TopLeft, ColorRGBA TopRight, ColorRGBA BottomLeft, ColorRGBA BottomRight)
848{
849 CColorVertex aArray[] = {
850 CColorVertex(0, TopLeft),
851 CColorVertex(1, TopRight),
852 CColorVertex(2, BottomRight),
853 CColorVertex(3, BottomLeft)};
854 SetColorVertex(aArray, std::size(aArray));
855}
856
857void CGraphics_Threaded::ChangeColorOfCurrentQuadVertices(float r, float g, float b, float a)
858{

Callers 4

RenderHslaScrollbarsMethod · 0.80
OnRenderMethod · 0.80
DoQuadEnvelopesMethod · 0.80

Calls 1

CColorVertexClass · 0.85

Tested by

no test coverage detected