Beispiel #1
0
//
// R_ClearPlanes
//
// At begining of frame.
//
void R_ClearPlanes(void)
{
   int i;
   float a = 0.0f;

#if 0
   // FIXME: borked in widescreen aspect ratios...
   int scaled_height = consoleactive ? video.x1lookup[Console.current_height] : 0;

   a = (float)(consoleactive ? 
         (scaled_height-viewwindowy) < 0 ? 0 : scaled_height-viewwindowy : 0);
#endif

   floorclip   = floorcliparray;
   ceilingclip = ceilingcliparray;

   // opening / clipping determination
   for(i = 0; i < MAX_SCREENWIDTH; ++i)
   {
      floorclip[i] = overlayfclip[i] = view.height - 1.0f;
      ceilingclip[i] = overlaycclip[i] = a;
   }

   R_ClearPlaneHash(&mainhash);

   lastopening = openings;

   // texture calculation
   memset(cachedheight, 0, sizeof(cachedheight));
   
   num_visplanes = 0;    // reset
}
Beispiel #2
0
//
// R_ClearPortals
//
// Called at the start of each frame
//
void R_ClearPortals()
{
   portal_t *r = portals;
   
   while(r)
   {
      R_ClearPlaneHash(r->poverlay);
      r = r->next;
   }
}