Renders all the lights glows for this frame
| 3518 | } |
| 3519 | // Renders all the lights glows for this frame |
| 3520 | void RenderLightGlows() { |
| 3521 | if (!UseHardware) |
| 3522 | return; |
| 3523 | // Render all the glows for this mine |
| 3524 | rend_SetColorModel(CM_RGB); |
| 3525 | rend_SetLighting(LS_GOURAUD); |
| 3526 | rend_SetTextureType(TT_LINEAR); |
| 3527 | rend_SetAlphaType(AT_SATURATE_TEXTURE); |
| 3528 | rend_SetOverlayType(OT_NONE); |
| 3529 | rend_SetFogState(0); |
| 3530 | int count = 0; |
| 3531 | |
| 3532 | for (int i = 0; i < MAX_LIGHT_GLOWS && count < Num_glows; i++) { |
| 3533 | if (LightGlows[i].flags & LGF_USED) { |
| 3534 | RenderSingleLightGlow(i); |
| 3535 | count++; |
| 3536 | } |
| 3537 | } |
| 3538 | |
| 3539 | rend_SetZBufferWriteMask(1); |
| 3540 | rend_SetZBufferState(1); |
| 3541 | } |
| 3542 | |
| 3543 | /* |
| 3544 | // Sets fogzone start and end points |
no test coverage detected