|
|
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.3 ! root 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.
1.1 root 11: //
1.1.1.3 ! root 12: // The source is distributed in the hope that it will be useful,
1.1 root 13: // but WITHOUT ANY WARRANTY; without even the implied warranty of
1.1.1.3 ! root 14: // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
! 15: // for more details.
1.1 root 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.
1.1.1.3 ! root 39: extern short *negonearray;
! 40: extern short *screenheightarray;
! 41:
! 42: //extern short negonearray[SCREENWIDTH];
! 43: //extern short screenheightarray[SCREENWIDTH];
1.1 root 44:
45: // vars for R_DrawMaskedColumn
46: extern short* mfloorclip;
47: extern short* mceilingclip;
48: extern fixed_t spryscale;
49: extern fixed_t sprtopscreen;
50:
51: extern fixed_t pspritescale;
52: extern fixed_t pspriteiscale;
53:
54:
55: void R_DrawMaskedColumn (column_t* column);
56:
57:
58: void R_SortVisSprites (void);
59:
60: void R_AddSprites (sector_t* sec);
61: void R_AddPSprites (void);
62: void R_DrawSprites (void);
63: void R_InitSprites (char** namelist);
64: void R_ClearSprites (void);
65: void R_DrawMasked (void);
66:
67: void
68: R_ClipVisSprite
69: ( vissprite_t* vis,
70: int xl,
71: int xh );
72:
73:
74: #endif
75: //-----------------------------------------------------------------------------
76: //
77: // $Log:$
78: //
79: //-----------------------------------------------------------------------------
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.