Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. // Emacs style mode select   -*- C++ -*-
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. //      Refresh, visplane stuff (floor, ceilings).
  19. //
  20. //-----------------------------------------------------------------------------
  21.  
  22.  
  23. #ifndef __R_PLANE__
  24. #define __R_PLANE__
  25.  
  26.  
  27. #include "r_data.h"
  28.  
  29. #ifdef __GNUG__
  30. #pragma interface
  31. #endif
  32.  
  33.  
  34. // Visplane related.
  35. extern  short*          lastopening;
  36.  
  37.  
  38. typedef void (*planefunction_t) (int top, int bottom);
  39.  
  40. extern planefunction_t  floorfunc;
  41. extern planefunction_t  ceilingfunc_t;
  42.  
  43. extern short            floorclip[SCREENWIDTH];
  44. extern short            ceilingclip[SCREENWIDTH];
  45.  
  46. extern fixed_t          yslope[SCREENHEIGHT];
  47. extern fixed_t          distscale[SCREENWIDTH];
  48.  
  49. void R_InitPlanes (void);
  50. void R_ClearPlanes (void);
  51.  
  52. void
  53. R_MapPlane
  54. ( int           y,
  55.   int           x1,
  56.   int           x2 );
  57.  
  58. void
  59. R_MakeSpans
  60. ( int           x,
  61.   int           t1,
  62.   int           b1,
  63.   int           t2,
  64.   int           b2 );
  65.  
  66. void R_DrawPlanes (void);
  67.  
  68. visplane_t*
  69. R_FindPlane
  70. ( fixed_t       height,
  71.   int           picnum,
  72.   int           lightlevel );
  73.  
  74. visplane_t*
  75. R_CheckPlane
  76. ( visplane_t*   pl,
  77.   int           start,
  78.   int           stop );
  79.  
  80.  
  81.  
  82. #endif
  83. //-----------------------------------------------------------------------------
  84. //
  85. // $Log:$
  86. //
  87. //-----------------------------------------------------------------------------
  88.