r_bsp.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 module, BSP traversal and handling.
  19. //
  20. //-----------------------------------------------------------------------------
  21. #ifndef __R_BSP__
  22. #define __R_BSP__
  23. #ifdef __GNUG__
  24. #pragma interface
  25. #endif
  26. extern seg_t* curline;
  27. extern side_t* sidedef;
  28. extern line_t* linedef;
  29. extern sector_t* frontsector;
  30. extern sector_t* backsector;
  31. extern int rw_x;
  32. extern int rw_stopx;
  33. extern boolean segtextured;
  34. // false if the back side is the same plane
  35. extern boolean markfloor;
  36. extern boolean markceiling;
  37. extern boolean skymap;
  38. extern drawseg_t drawsegs[MAXDRAWSEGS];
  39. extern drawseg_t* ds_p;
  40. extern lighttable_t** hscalelight;
  41. extern lighttable_t** vscalelight;
  42. extern lighttable_t** dscalelight;
  43. typedef void (*drawfunc_t) (int start, int stop);
  44. // BSP?
  45. void R_ClearClipSegs (void);
  46. void R_ClearDrawSegs (void);
  47. void R_RenderBSPNode (int bspnum);
  48. #endif
  49. //-----------------------------------------------------------------------------
  50. //
  51. // $Log:$
  52. //
  53. //-----------------------------------------------------------------------------