r_plane.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. #ifndef __R_PLANE__
  22. #define __R_PLANE__
  23. #include "r_data.h"
  24. #ifdef __GNUG__
  25. #pragma interface
  26. #endif
  27. // Visplane related.
  28. extern short* lastopening;
  29. typedef void (*planefunction_t) (int top, int bottom);
  30. extern planefunction_t floorfunc;
  31. extern planefunction_t ceilingfunc_t;
  32. extern short floorclip[SCREENWIDTH];
  33. extern short ceilingclip[SCREENWIDTH];
  34. extern fixed_t yslope[SCREENHEIGHT];
  35. extern fixed_t distscale[SCREENWIDTH];
  36. void R_InitPlanes (void);
  37. void R_ClearPlanes (void);
  38. void
  39. R_MapPlane
  40. ( int y,
  41. int x1,
  42. int x2 );
  43. void
  44. R_MakeSpans
  45. ( int x,
  46. int t1,
  47. int b1,
  48. int t2,
  49. int b2 );
  50. void R_DrawPlanes (void);
  51. visplane_t*
  52. R_FindPlane
  53. ( fixed_t height,
  54. int picnum,
  55. int lightlevel );
  56. visplane_t*
  57. R_CheckPlane
  58. ( visplane_t* pl,
  59. int start,
  60. int stop );
  61. #endif
  62. //-----------------------------------------------------------------------------
  63. //
  64. // $Log:$
  65. //
  66. //-----------------------------------------------------------------------------