|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 // Emacs style mode select -*- C++ -*- 00002 //----------------------------------------------------------------------------- 00003 // 00004 // $Id: r_data.h 1837 2010-09-02 04:21:09Z spleen $ 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, data I/O, caching, retrieval of graphics 00021 // by name. 00022 // 00023 //----------------------------------------------------------------------------- 00024 00025 00026 #ifndef __R_DATA__ 00027 #define __R_DATA__ 00028 00029 #include "r_defs.h" 00030 #include "r_state.h" 00031 00032 // Retrieve column data for span blitting. 00033 byte* 00034 R_GetColumn 00035 ( int tex, 00036 int col ); 00037 00038 00039 // I/O, setting up the stuff. 00040 void R_InitData (void); 00041 void R_PrecacheLevel (void); 00042 00043 00044 // Retrieval. 00045 // Floor/ceiling opaque texture tiles, 00046 // lookup by name. For animation? 00047 int R_FlatNumForName (const char *name); 00048 inline int R_FlatNumForName (const byte *name) { return R_FlatNumForName ((const char *)name); } 00049 00050 00051 // Called by P_Ticker for switches and animations, 00052 // returns the texture number for the texture name. 00053 int R_TextureNumForName (const char *name); 00054 int R_CheckTextureNumForName (const char *name); 00055 00056 inline int R_TextureNumForName (const byte *name) { return R_TextureNumForName ((const char *)name); } 00057 inline int R_CheckTextureNumForName (const byte *name) { return R_CheckTextureNumForName ((const char *)name); } 00058 00059 int R_ColormapNumForName(const char *name); // killough 4/4/98 00060 void R_SetDefaultColormap (const char *name); // [RH] change normal fadetable 00061 unsigned int R_BlendForColormap (int map); // [RH] return calculated blend for a colormap 00062 extern byte *realcolormaps; // [RH] make the colormaps externally visible 00063 extern size_t numfakecmaps; 00064 00065 int R_FindSkin (const char *name); // [RH] Find a skin 00066 00067 unsigned int SlopeDiv(unsigned int num, unsigned int den); 00068 00069 // [RH] Tutti-Frutti fix 00070 extern "C" unsigned int dc_mask; 00071 00072 #endif 00073 00074