1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
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.
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
18 // Rendering of moving objects, sprites.
20 //-----------------------------------------------------------------------------
27 #define MAXVISSPRITES 128
29 extern vissprite_t vissprites[MAXVISSPRITES];
30 extern vissprite_t* vissprite_p;
31 extern vissprite_t vsprsortedhead;
33 // Constant arrays used for psprite clipping
34 // and initializing clipping.
35 extern short negonearray[SCREENWIDTH];
36 extern short screenheightarray[SCREENWIDTH];
38 // vars for R_DrawMaskedColumn
39 extern short* mfloorclip;
40 extern short* mceilingclip;
41 extern fixed_t spryscale;
42 extern fixed_t sprtopscreen;
44 extern fixed_t pspritescale;
45 extern fixed_t pspriteiscale;
48 void R_DrawMaskedColumn (column_t* column);
51 void R_SortVisSprites (void);
53 void R_AddSprites (sector_t* sec);
54 void R_AddPSprites (void);
55 void R_DrawSprites (void);
56 void R_InitSprites (char** namelist);
57 void R_ClearSprites (void);
58 void R_DrawMasked (void);
68 //-----------------------------------------------------------------------------
72 //-----------------------------------------------------------------------------