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

Function RenderScorchesForRoom

Descent3/render.cpp:1621–1643  ·  view source on GitHub ↗

MATT! Change this function to sort by state once you change the scorch system!

Source from the content-addressed store, hash-verified

1619}
1620// MATT! Change this function to sort by state once you change the scorch system!
1621void RenderScorchesForRoom(room *rp) {
1622 int i;
1623 if (!Detail_settings.Scorches_enabled)
1624 return;
1625 // Set alpha, transparency, & lighting for this face
1626 rend_SetAlphaType(AT_LIGHTMAP_BLEND);
1627 rend_SetAlphaValue(255);
1628 rend_SetLighting(LS_NONE);
1629 rend_SetColorModel(CM_MONO);
1630 rend_SetOverlayType(OT_NONE);
1631 rend_SetZBias(-.5);
1632 rend_SetZBufferWriteMask(0);
1633
1634 // Select texture type
1635 rend_SetTextureType(TT_LINEAR);
1636
1637 for (i = 0; i < Num_scorches_to_render; i++) {
1638 DrawScorches(ROOMNUM(rp), Scorches_to_render[i]);
1639 }
1640 // Reset rendering states
1641 rend_SetZBias(0);
1642 rend_SetZBufferWriteMask(1);
1643}
1644// Draw the specified face
1645// Parameters: rp - pointer to the room the face is un
1646// facenum - which face in the specified room

Callers 1

RenderRoomFunction · 0.85

Calls 9

DrawScorchesFunction · 0.85
rend_SetAlphaTypeFunction · 0.50
rend_SetAlphaValueFunction · 0.50
rend_SetLightingFunction · 0.50
rend_SetColorModelFunction · 0.50
rend_SetOverlayTypeFunction · 0.50
rend_SetZBiasFunction · 0.50
rend_SetZBufferWriteMaskFunction · 0.50
rend_SetTextureTypeFunction · 0.50

Tested by

no test coverage detected