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

Function rend_SetZValues

renderer/HardwareBaseGPU.cpp:131–139  ·  view source on GitHub ↗

Sets the near and far planes for z buffer

Source from the content-addressed store, hash-verified

129
130// Sets the near and far planes for z buffer
131void rend_SetZValues(float nearz, float farz) {
132 gpu_state.cur_near_z = nearz;
133 gpu_state.cur_far_z = farz;
134 // mprintf(0,"OPENGL:Setting depth range to %f - %f\n",nearz,farz);
135
136 // JEFF: glDepthRange must take parameters [0,1]
137 // It is set in init
138 //@@dglDepthRange (0,farz);
139}
140
141// Sets a bitmap as a overlay map to rendered on top of the next texture map
142// a -1 value indicates no overlay map

Callers 4

opengl_SetDefaultsFunction · 0.70
RenderTerrainFunction · 0.50
TCAMCallbackFunction · 0.50
RenderMineFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected