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

Function DrawColoredDisk

Descent3/fireball.cpp:2054–2059  ·  view source on GitHub ↗

Draws a colored alpha disk...useful for cool lighting effects

Source from the content-addressed store, hash-verified

2052}
2053// Draws a colored alpha disk...useful for cool lighting effects
2054void DrawColoredDisk(vector *pos, float r, float g, float b, float inner_alpha, float outer_alpha, float size,
2055 uint8_t saturate, uint8_t lod) {
2056 rend_SetZBufferWriteMask(0);
2057 DrawColoredRing(pos, r, g, b, inner_alpha, outer_alpha, size, 0, saturate, lod);
2058 rend_SetZBufferWriteMask(1);
2059}
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) {

Callers 8

DrawRoomVisPntsFunction · 0.85
DrawDebugInfoFunction · 0.85
RenderObjectFunction · 0.85
DrawPowerupGlowDiskFunction · 0.85
DrawBlastRingObjectFunction · 0.85
DrawElectricalWeaponFunction · 0.85
TCAMDrawObjectsFunction · 0.85
DoRenderFrameMethod · 0.85

Calls 2

DrawColoredRingFunction · 0.85
rend_SetZBufferWriteMaskFunction · 0.50

Tested by

no test coverage detected