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

Function rend_SetAlphaValue

renderer/HardwareBaseGPU.cpp:181–184  ·  view source on GitHub ↗

Sets the alpha value for constant alpha

Source from the content-addressed store, hash-verified

179
180// Sets the alpha value for constant alpha
181void rend_SetAlphaValue(uint8_t val) {
182 gpu_state.cur_alpha = val;
183 gpu_Alpha_multiplier = rend_GetAlphaMultiplier();
184}
185
186// Sets the texture wrapping type
187void rend_SetWrapType(wrap_type val) { gpu_state.cur_wrap_type = val; }

Callers 15

rend_DrawSimpleBitmapFunction · 0.70
opengl_SetDefaultsFunction · 0.70
rend_SetAlphaTypeFunction · 0.70
RenderSubmodelFaceFunction · 0.50
DrawThrusterEffectFunction · 0.50
DrawGlowEffectFunction · 0.50
RenderSubmodelFunction · 0.50
ui_DoCursorFunction · 0.50
ui_DrawRectFunction · 0.50
ui_DrawBitmapFunction · 0.50

Calls 1

rend_GetAlphaMultiplierFunction · 0.85

Tested by

no test coverage detected