MCPcopy Create free account
hub / github.com/ZDoom/Raze / ClearScreen

Method ClearScreen

source/common/rendering/gl/gl_renderstate.cpp:577–592  ·  view source on GitHub ↗

========================================================================== ==========================================================================

Source from the content-addressed store, hash-verified

575//
576//==========================================================================
577void FGLRenderState::ClearScreen()
578{
579 bool multi = !!glIsEnabled(GL_MULTISAMPLE);
580
581 screen->mViewpoints->Set2D(*this, SCREENWIDTH, SCREENHEIGHT);
582 SetColor(0, 0, 0);
583 Apply();
584
585 glDisable(GL_MULTISAMPLE);
586 glDisable(GL_DEPTH_TEST);
587
588 glDrawArrays(GL_TRIANGLE_STRIP, FFlatVertexBuffer::FULLSCREEN_INDEX, 4);
589
590 glEnable(GL_DEPTH_TEST);
591 if (multi) glEnable(GL_MULTISAMPLE);
592}
593
594
595

Callers

nothing calls this directly

Calls 1

Set2DMethod · 0.80

Tested by

no test coverage detected