TODO: MTS: Not used? Draws a glowing cone of light using a bitmap
| 2060 | // TODO: MTS: Not used? |
| 2061 | // Draws a glowing cone of light using a bitmap |
| 2062 | void DrawColoredGlow(vector *pos, float r, float g, float b, float size) { |
| 2063 | rend_SetTextureType(TT_LINEAR); |
| 2064 | rend_SetAlphaType(AT_SATURATE_TEXTURE); |
| 2065 | rend_SetLighting(LS_GOURAUD); |
| 2066 | rend_SetColorModel(CM_RGB); |
| 2067 | ddgr_color color = GR_RGB(r * 255, g * 255, b * 255); |
| 2068 | int bm_handle = Fireballs[GRADIENT_BALL_INDEX].bm_handle; |
| 2069 | g3_DrawBitmap(pos, size, (size * bm_h(bm_handle, 0)) / bm_w(bm_handle, 0), bm_handle, color); |
| 2070 | } |
| 2071 | |
| 2072 | // Draws a colored alpha ring...useful for cool lighting effects |
| 2073 | void DrawColoredRing(vector *pos, float r, float g, float b, float inner_alpha, float outer_alpha, float size, |
nothing calls this directly
no test coverage detected