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

Function rend_SetColorModel

renderer/HardwareOpenGL.cpp:1610–1622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1608}
1609
1610void rend_SetColorModel(color_model state) {
1611 switch (state) {
1612 case CM_MONO:
1613 gpu_state.cur_color_model = CM_MONO;
1614 break;
1615 case CM_RGB:
1616 gpu_state.cur_color_model = CM_RGB;
1617 break;
1618 default:
1619 Int3();
1620 break;
1621 }
1622}
1623
1624void rend_SetTextureType(texture_type state) {
1625 if (state == gpu_state.cur_texture_type)

Callers 15

rend_DrawSimpleBitmapFunction · 0.70
opengl_SetDefaultsFunction · 0.70
DrawPolygonModelFunction · 0.50
DrawThrusterEffectFunction · 0.50
DrawGlowEffectFunction · 0.50
RotateModelPointsFunction · 0.50
RenderSubmodelFunction · 0.50
ui_DoCursorFunction · 0.50
ui_DrawBitmapFunction · 0.50
OnDrawMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected