/* * @brief Draw all 2D geometry accumulated for the current frame. */ void R_Draw2D(void) { R_DrawFills(); R_DrawLines(); R_DrawChars(); }
/** * @sa R_RenderFrame * @sa R_BeginFrame */ void R_EndFrame (void) { R_EnableBlend(true); R_DrawChars(); /* draw all chars accumulated above */ /* restore draw color */ R_Color(NULL); R_EnableBlend(false); if (vid_gamma->modified) { if (!vid_ignoregamma->integer) { const float g = vid_gamma->value; SDL_SetGamma(g, g, g); } vid_gamma->modified = false; } R_ClearScene(); SDL_GL_SwapBuffers(); }