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

Function rend_SetZBufferWriteMask

renderer/HardwareOpenGL.cpp:2061–2068  ·  view source on GitHub ↗

Enables/disables writes the depth buffer

Source from the content-addressed store, hash-verified

2059
2060// Enables/disables writes the depth buffer
2061void rend_SetZBufferWriteMask(int state) {
2062 OpenGL_sets_this_frame[5]++;
2063 if (state) {
2064 dglDepthMask(GL_TRUE);
2065 } else {
2066 dglDepthMask(GL_FALSE);
2067 }
2068}
2069
2070int rend_ReInit() {
2071 opengl_Close(true);

Callers 15

DrawThrusterEffectFunction · 0.50
DrawGlowEffectFunction · 0.50
RenderSubmodelFunction · 0.50
GameRenderWorldFunction · 0.50
GameRenderFrameFunction · 0.50
DrawPlayerDamageDiskFunction · 0.50
DrawPlayerInvulSphereFunction · 0.50
DrawPlayerRotatingBallFunction · 0.50
RenderAllTerrainObjectsFunction · 0.50
RenderTerrainFunction · 0.50
DrawSkyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected