r_things.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. // Rendering of moving objects, sprites.
  19. //
  20. //-----------------------------------------------------------------------------
  21. #ifndef __R_THINGS__
  22. #define __R_THINGS__
  23. #ifdef __GNUG__
  24. #pragma interface
  25. #endif
  26. #define MAXVISSPRITES 128
  27. extern vissprite_t vissprites[MAXVISSPRITES];
  28. extern vissprite_t* vissprite_p;
  29. extern vissprite_t vsprsortedhead;
  30. // Constant arrays used for psprite clipping
  31. // and initializing clipping.
  32. extern short negonearray[SCREENWIDTH];
  33. extern short screenheightarray[SCREENWIDTH];
  34. // vars for R_DrawMaskedColumn
  35. extern short* mfloorclip;
  36. extern short* mceilingclip;
  37. extern fixed_t spryscale;
  38. extern fixed_t sprtopscreen;
  39. extern fixed_t pspritescale;
  40. extern fixed_t pspriteiscale;
  41. void R_DrawMaskedColumn (column_t* column);
  42. void R_SortVisSprites (void);
  43. void R_AddSprites (sector_t* sec);
  44. void R_AddPSprites (void);
  45. void R_DrawSprites (void);
  46. void R_InitSprites (char** namelist);
  47. void R_ClearSprites (void);
  48. void R_DrawMasked (void);
  49. void
  50. R_ClipVisSprite
  51. ( vissprite_t* vis,
  52. int xl,
  53. int xh );
  54. #endif
  55. //-----------------------------------------------------------------------------
  56. //
  57. // $Log:$
  58. //
  59. //-----------------------------------------------------------------------------