Odamex
Setting the Standard in Multiplayer Doom
common/r_bsp.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*- 
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: r_bsp.h 1788 2010-08-24 04:42:57Z russellrice $
00005 //
00006 // Copyright (C) 1993-1996 by id Software, Inc.
00007 // Copyright (C) 2006-2010 by The Odamex Team.
00008 //
00009 // This program is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU General Public License
00011 // as published by the Free Software Foundation; either version 2
00012 // of the License, or (at your option) any later version.
00013 //
00014 // This program is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // DESCRIPTION:
00020 //      Refresh module, BSP traversal and handling.
00021 //
00022 //-----------------------------------------------------------------------------
00023 
00024 
00025 #ifndef __R_BSP__
00026 #define __R_BSP__
00027 
00028 
00029 extern seg_t*           curline;
00030 extern side_t*          sidedef;
00031 extern line_t*          linedef;
00032 extern sector_t*        frontsector;
00033 extern sector_t*        backsector;
00034 
00035 extern BOOL                     skymap;
00036 
00037 extern drawseg_t        *drawsegs;
00038 extern drawseg_t*       ds_p;
00039 
00040 
00041 typedef void (*drawfunc_t) (int start, int stop);
00042 
00043 EXTERN_CVAR (r_drawflat)                // [RH] Don't texture segs?
00044 
00045 // BSP?
00046 void R_ClearClipSegs (void);
00047 void R_ClearDrawSegs (void);
00048 void R_RenderBSPNode (int bspnum);
00049 int R_DoorClosed(void); // killough 1/17/98
00050 
00051 // killough 4/13/98: fake floors/ceilings for deep water / fake ceilings:
00052 sector_t *R_FakeFlat(sector_t *, sector_t *, int *, int *, BOOL);
00053 
00054 
00055 #endif
00056 
00057 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends