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

Function rend_ClearScreen

renderer/HardwareOpenGL.cpp:1751–1759  ·  view source on GitHub ↗

Clears the display to a specified color

Source from the content-addressed store, hash-verified

1749
1750// Clears the display to a specified color
1751void rend_ClearScreen(ddgr_color color) {
1752 int r = (color >> 16 & 0xFF);
1753 int g = (color >> 8 & 0xFF);
1754 int b = (color & 0xFF);
1755
1756 dglClearColor((float)r / 255.0f, (float)g / 255.0f, (float)b / 255.0f, 0);
1757
1758 dglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
1759}
1760
1761// Clears the zbuffer for the screen
1762void rend_ClearZBuffer(void) { dglClear(GL_DEPTH_BUFFER_BIT); }

Callers 10

TexGrStartOpenGLMethod · 0.50
EndLevelFunction · 0.50
GameRenderFrameFunction · 0.50
CallbackShowFrameFunction · 0.50
CallbackShowFrameNoFlipFunction · 0.50
SimpleUICallbackFunction · 0.50
InitMessageFunction · 0.50
RenderBlankScreenFunction · 0.50
LoadLevelProgressFunction · 0.50
ShowProgressScreenFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected