1 /* 2 skin.h 3 4 Client skin definitions 5 6 Copyright (C) 1996-1997 Id Software, Inc. 7 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. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 17 See the GNU General Public License for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to: 21 22 Free Software Foundation, Inc. 23 59 Temple Place - Suite 330 24 Boston, MA 02111-1307, USA 25 26 */ 27 28 #ifndef _SKIN_H 29 #define _SKIN_H 30 31 #include "QF/qtypes.h" 32 #include "QF/vid.h" 33 #include "QF/zone.h" 34 35 #define MAX_CACHED_SKINS 128 36 #define MAX_SKIN_LENGTH 32 37 38 #define TOP_RANGE 16 // soldier uniform colors 39 #define BOTTOM_RANGE 96 40 41 #define RSSHOT_WIDTH 320 42 #define RSSHOT_HEIGHT 200 43 44 // if more than 32 clients are to be supported, then this will need to be 45 // updated 46 #define MAX_TRANSLATIONS 32 47 48 #define PLAYER_WIDTH 296 49 #define PLAYER_HEIGHT 194 50 51 typedef struct skin_s { 52 const char *name; 53 qboolean valid; // the skin was found 54 struct tex_s *texels; 55 byte *colormap; 56 int texnum; 57 int auxtex; 58 } skin_t; 59 60 #endif 61