|
|
1.1 ! root 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: extern short* mfloorclip; ! 44: extern short* mceilingclip; ! 45: extern fixed_t spryscale; ! 46: extern fixed_t sprtopscreen; ! 47: ! 48: extern fixed_t pspritescale; ! 49: extern fixed_t pspriteiscale; ! 50: ! 51: ! 52: void R_DrawMaskedColumn (column_t* column); ! 53: ! 54: ! 55: void R_SortVisSprites (void); ! 56: ! 57: void R_AddSprites (sector_t* sec); ! 58: void R_AddPSprites (void); ! 59: void R_DrawSprites (void); ! 60: void R_InitSprites (char** namelist); ! 61: void R_ClearSprites (void); ! 62: void R_DrawMasked (void); ! 63: ! 64: void ! 65: R_ClipVisSprite ! 66: ( vissprite_t* vis, ! 67: int xl, ! 68: int xh ); ! 69: ! 70: ! 71: #endif ! 72: //----------------------------------------------------------------------------- ! 73: // ! 74: // $Log:$ ! 75: // ! 76: //-----------------------------------------------------------------------------
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.