Exemplo n.º 1
0
/*
 * @brief Draw all 2D geometry accumulated for the current frame.
 */
void R_Draw2D(void) {

	R_DrawFills();

	R_DrawLines();

	R_DrawChars();
}
Exemplo n.º 2
0
/**
 * @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();
}