Exemplo n.º 1
0
void P_Drawer(void) 
{
   static boolean refreshdrawn;

   if(players[consoleplayer].automapflags & AF_OPTIONSACTIVE)
   {
      O_Drawer();
      refreshdrawn = false;
   }
   else if(players[consoleplayer].automapflags & AF_ACTIVE)
   {
      ST_Drawer();
      AM_Drawer();
      I_Update();
      refreshdrawn = true;
   }
   else
   {
      if(gamepaused && refreshdrawn)     // CALICO: do this here
         DrawPlaque(pausepic, "paused");
      ST_Drawer();
      R_RenderPlayerView();
      refreshdrawn = true;
      // assume part of the refresh is now running parallel with main code
   }
} 
Exemplo n.º 2
0
void P_LoadingPlaque(void)
{
    jagobj_t *pl;

    pl = W_CacheLumpName("loading", PU_STATIC);
    DrawPlaque(pl, "loading");
    Z_Free(pl);
}
Exemplo n.º 3
0
void P_Drawer(void)
{
	if (gamepaused && refreshdrawn) {
		DrawPlaque(rPAUSED);		/* Draw paused */
	} else if (players.AutomapFlags & AF_OPTIONSACTIVE) {
		R_RenderPlayerView();	/* Render the 3D view */
		ST_Drawer();			/* Draw the status bar */
		O_Drawer();			/* Draw the console handler */
		refreshdrawn = FALSE;
	} else if (players.AutomapFlags & AF_ACTIVE) {
		AM_Drawer();		/* Draw the automap */
		ST_Drawer();		/* Draw the status bar */
		UpdateAndPageFlip();	/* Update and page flip */
		refreshdrawn = TRUE;
	} else {
		R_RenderPlayerView();	/* Render the 3D view */
		ST_Drawer();			/* Draw the status bar */
		UpdateAndPageFlip();
		refreshdrawn = TRUE;
	}
}