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

Function DrawColoredGlow

Descent3/fireball.cpp:2062–2070  ·  view source on GitHub ↗

TODO: MTS: Not used? Draws a glowing cone of light using a bitmap

Source from the content-addressed store, hash-verified

2060// TODO: MTS: Not used?
2061// Draws a glowing cone of light using a bitmap
2062void 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
2073void DrawColoredRing(vector *pos, float r, float g, float b, float inner_alpha, float outer_alpha, float size,

Callers

nothing calls this directly

Calls 8

g3_DrawBitmapFunction · 0.85
bm_hFunction · 0.85
bm_wFunction · 0.85
rend_SetTextureTypeFunction · 0.50
rend_SetAlphaTypeFunction · 0.50
rend_SetLightingFunction · 0.50
rend_SetColorModelFunction · 0.50
GR_RGBFunction · 0.50

Tested by

no test coverage detected