|
|
1.1 root 1: // Emacs style mode select -*- C++ -*-
2: //-----------------------------------------------------------------------------
3: //
4: // $Id:$
5: //
6: // Copyright (C) 1993-1996 by id Software, Inc.
7: //
1.1.1.2 ! root 8: // This program is free software; you can redistribute it and/or
! 9: // modify it under the terms of the GNU General Public License
! 10: // as published by the Free Software Foundation; either version 2
! 11: // of the License, or (at your option) any later version.
1.1 root 12: //
1.1.1.2 ! root 13: // This program is distributed in the hope that it will be useful,
1.1 root 14: // but WITHOUT ANY WARRANTY; without even the implied warranty of
1.1.1.2 ! root 15: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 16: // GNU General Public License for more details.
1.1 root 17: //
18: // DESCRIPTION:
19: // Rendering of moving objects, sprites.
20: //
21: //-----------------------------------------------------------------------------
22:
23:
24: #ifndef __R_THINGS__
25: #define __R_THINGS__
26:
27:
28: #ifdef __GNUG__
29: #pragma interface
30: #endif
31:
32: #define MAXVISSPRITES 128
33:
34: extern vissprite_t vissprites[MAXVISSPRITES];
35: extern vissprite_t* vissprite_p;
36: extern vissprite_t vsprsortedhead;
37:
38: // Constant arrays used for psprite clipping
39: // and initializing clipping.
40: extern short negonearray[SCREENWIDTH];
41: extern short screenheightarray[SCREENWIDTH];
42:
43: // vars for R_DrawMaskedColumn
44: extern short* mfloorclip;
45: extern short* mceilingclip;
46: extern fixed_t spryscale;
47: extern fixed_t sprtopscreen;
48:
49: extern fixed_t pspritescale;
50: extern fixed_t pspriteiscale;
51:
52:
53: void R_DrawMaskedColumn (column_t* column);
54:
55:
56: void R_SortVisSprites (void);
57:
58: void R_AddSprites (sector_t* sec);
59: void R_AddPSprites (void);
60: void R_DrawSprites (void);
61: void R_InitSprites (char** namelist);
62: void R_ClearSprites (void);
63: void R_DrawMasked (void);
64:
65: void
66: R_ClipVisSprite
67: ( vissprite_t* vis,
68: int xl,
69: int xh );
70:
71:
72: #endif
73: //-----------------------------------------------------------------------------
74: //
75: // $Log:$
76: //
77: //-----------------------------------------------------------------------------
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.