MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / RenderPreHUDFrame

Function RenderPreHUDFrame

Descent3/hud.cpp:1265–1283  ·  view source on GitHub ↗

renders hud frame before any graphics are drawn

Source from the content-addressed store, hash-verified

1263
1264// renders hud frame before any graphics are drawn
1265void RenderPreHUDFrame() {
1266 extern void RenderHUDMsgDirtyRects();
1267
1268 // render any dirty rectangles if small hud flag is set
1269 if (Small_hud_flag) {
1270 int i;
1271
1272 for (i = 0; i < MAX_HUD_ITEMS; i++) {
1273 if ((Hud_stat_mask & HUD_array[i].stat) && (HUD_array[i].flags & HUD_FLAG_SMALL)) {
1274 HUD_array[i].dirty_rect.fill(GR_BLACK);
1275 }
1276 }
1277
1278 // messages.
1279 if ((Hud_stat_mask & STAT_MESSAGES)) {
1280 RenderHUDMsgDirtyRects();
1281 }
1282 }
1283}
1284
1285extern MsgListConsole Game_msg_con;
1286extern MsgListConsole HUD_msg_con;

Callers 1

GameRenderFrameFunction · 0.85

Calls 2

RenderHUDMsgDirtyRectsFunction · 0.85
fillMethod · 0.80

Tested by

no test coverage detected