home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 25 / amigaformatcd25.iso / websites / amidoom / adoom_src-0.7.lha / ADoom_src / r_things.h < prev    next >
C/C++ Source or Header  |  1998-01-15  |  2KB  |  88 lines

  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.  
  22.  
  23. #ifndef __R_THINGS__
  24. #define __R_THINGS__
  25.  
  26.  
  27. #ifdef __GNUG__
  28. #pragma interface
  29. #endif
  30.  
  31. #define MAXVISSPRITES      128
  32.  
  33. extern vissprite_t    vissprites[MAXVISSPRITES];
  34. extern vissprite_t*    vissprite_p;
  35. extern vissprite_t    vsprsortedhead;
  36.  
  37. // Constant arrays used for psprite clipping
  38. //  and initializing clipping.
  39. extern short        negonearray[SCREENWIDTH];
  40. extern short        screenheightarray[SCREENWIDTH];
  41.  
  42. // vars for R_DrawMaskedColumn
  43.  
  44. //#ifdef AMIGA
  45. //#include "macros.h"
  46. //
  47. //#define TYPE_NORMAL 0
  48. //#define TYPE_FUZZ   1
  49. //#define TYPE_TRANSL 2
  50. //
  51. //void REGARGS R_DrawMaskedColumnAmi (REG(a0, column_t* column), REG(d0, type));
  52. //#endif
  53.  
  54. extern short*        mfloorclip;
  55. extern short*        mceilingclip;
  56. extern fixed_t        spryscale;
  57. extern fixed_t        sprtopscreen;
  58.  
  59. extern fixed_t        pspritescale;
  60. extern fixed_t        pspriteiscale;
  61.  
  62.  
  63. void R_DrawMaskedColumn (column_t* column);
  64.  
  65.  
  66. void R_SortVisSprites (void);
  67.  
  68. void R_AddSprites (sector_t* sec);
  69. void R_AddPSprites (void);
  70. void R_DrawSprites (void);
  71. void R_InitSprites (char** namelist);
  72. void R_ClearSprites (void);
  73. void R_DrawMasked (void);
  74.  
  75. void
  76. R_ClipVisSprite
  77. ( vissprite_t*        vis,
  78.   int            xl,
  79.   int            xh );
  80.  
  81.  
  82. #endif
  83. //-----------------------------------------------------------------------------
  84. //
  85. // $Log:$
  86. //
  87. //-----------------------------------------------------------------------------
  88.