]> git.lizzy.rs Git - plan9front.git/blob - sys/src/games/doom/r_things.h
games/doom:
[plan9front.git] / sys / src / games / doom / r_things.h
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 #define MAXVISSPRITES   128
28
29 extern vissprite_t      vissprites[MAXVISSPRITES];
30 extern vissprite_t*     vissprite_p;
31 extern vissprite_t      vsprsortedhead;
32
33 // Constant arrays used for psprite clipping
34 //  and initializing clipping.
35 extern short            negonearray[SCREENWIDTH];
36 extern short            screenheightarray[SCREENWIDTH];
37
38 // vars for R_DrawMaskedColumn
39 extern short*           mfloorclip;
40 extern short*           mceilingclip;
41 extern fixed_t          spryscale;
42 extern fixed_t          sprtopscreen;
43
44 extern fixed_t          pspritescale;
45 extern fixed_t          pspriteiscale;
46
47
48 void R_DrawMaskedColumn (column_t* column);
49
50
51 void R_SortVisSprites (void);
52
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);
59
60 void
61 R_ClipVisSprite
62 ( vissprite_t*          vis,
63   int                   xl,
64   int                   xh );
65
66
67 #endif
68 //-----------------------------------------------------------------------------
69 //
70 // $Log:$
71 //
72 //-----------------------------------------------------------------------------