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

Function d3d_SetMipState

legacy/renderer/Direct3D.cpp:2932–2940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2930}
2931
2932void d3d_SetMipState(int8_t state) {
2933 D3D_state.cur_mip_state = state;
2934
2935 if (d3d_CanMip && state) {
2936 lpD3DDevice->SetTextureStageState(0, D3DTSS_MIPFILTER, D3DTFP_POINT);
2937 } else {
2938 lpD3DDevice->SetTextureStageState(0, D3DTSS_MIPFILTER, D3DTFP_NONE);
2939 }
2940}
2941
2942// Sets up a some global preferences for D3D
2943int d3d_SetPreferredState(renderer_preferred_state *pref_state) {

Callers 3

d3d_SetDefaultStatesFunction · 0.85
d3d_SetPreferredStateFunction · 0.85
rend_SetMipStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected