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

Method ClearScreen

source/common/rendering/gles/gles_renderstate.cpp:700–713  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

698//
699//==========================================================================
700void FGLRenderState::ClearScreen()
701{
702
703 screen->mViewpoints->Set2D(*this, SCREENWIDTH, SCREENHEIGHT);
704 SetColor(0, 0, 0);
705 Apply();
706
707 glDisable(GL_DEPTH_TEST);
708
709 glDrawArrays(GL_TRIANGLE_STRIP, FFlatVertexBuffer::FULLSCREEN_INDEX, 4);
710
711 glEnable(GL_DEPTH_TEST);
712
713}
714
715
716

Callers

nothing calls this directly

Calls 1

Set2DMethod · 0.80

Tested by

no test coverage detected