MCPcopy Create free account
hub / github.com/assaultcube/AC / drawteamicons

Function drawteamicons

source/src/renderhud.cpp:699–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699void drawteamicons(int w, int h, bool spect)
700{
701 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
702 glColor3f(1, 1, 1);
703 static Texture *icons = NULL;
704 if(!icons) icons = textureload("packages/misc/teamicons.png", 3);
705 if(player1->team < TEAM_SPECT || spect) quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_base(spect ? players[player1->followplayercn]->team : player1->team) ? 0.5f : 0, 0, 0.49f, 1.0f);
706}
707
708int damageblendmillis = 0;
709void *damageblendplayer = NULL;

Callers 1

gl_drawhudFunction · 0.85

Calls 2

textureloadFunction · 0.85
quadFunction · 0.85

Tested by

no test coverage detected