components/prboom/r_plane.c
//
// R_ClearPlanes
// At begining of frame.
//
R_ClearPlanes
At begining of frame.
R_ClearPlanes At begining of frame .
void R_ClearPlanes(void)
{
  int i;
  for (i=0 ; i<viewwidth ; i++)
    floorclip[i] = viewheight, ceilingclip[i] = -1;
  for (i=0;i<MAXVISPLANES;i++)    
    for (*freehead = visplanes[i], visplanes[i] = NULL; *freehead; )
      freehead = &(*freehead)->next;
  lastopening = openings;
  memset (cachedheight, 0, sizeof(cachedheight));
  basexscale = FixedDiv (viewsin,projection);
  baseyscale = FixedDiv (viewcos,projection);
}
void R_ClearPlanes ( void ) { int i ; for ( i = 0 ; i < viewwidth ; i ++ ) floorclip [ i ] = viewheight , ceilingclip [ i ] = -1 ; for ( i = 0 ; i < MAXVISPLANES ; i ++ ) for ( * freehead = visplanes [ i ] , visplanes [ i ] = NULL ; * freehead ; ) freehead = & ( * freehead ) -> next ; lastopening = openings ; memset ( cachedheight , 0 , sizeof ( cachedheight ) ) ; basexscale = FixedDiv ( viewsin , projection ) ; baseyscale = FixedDiv ( viewcos , projection ) ; }
R_ClearPlanes
At begining of frame.
R_ClearPlanes At begining of frame .
// opening / clipping determination // new code -- killough // texture calculation // scale will be unit scale at SCREENWIDTH/2 distance