//************************************************************************** //** //** ## ## ## ## ## #### #### ### ### //** ## ## ## ## ## ## ## ## ## ## #### #### //** ## ## ## ## ## ## ## ## ## ## ## ## ## ## //** ## ## ######## ## ## ## ## ## ## ## ### ## //** ### ## ## ### ## ## ## ## ## ## //** # ## ## # #### #### ## ## //** //** $Id: ftexdefs.h 1741 2006-09-26 23:26:48Z dj_jl $ //** //** Copyright (C) 1999-2006 Jānis Legzdiņš //** //** This program is free software; you can redistribute it and/or //** modify it under the terms of the GNU General Public License //** as published by the Free Software Foundation; either version 2 //** of the License, or (at your option) any later version. //** //** This program is distributed in the hope that it will be useful, //** but WITHOUT ANY WARRANTY; without even the implied warranty of //** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //** GNU General Public License for more details. //** //************************************************************************** #pragma pack(push, 1) //========================================================================== // // Texture definition // //========================================================================== struct maptexture_t { struct mappatch_t { short originx; short originy; short patch; short stepdir; short colourmap; }; char name[8]; short masked; // Unused vuint8 sscale; // ZDoom's texture scaling vuint8 tscale; short width; short height; int columndirectory; // OBSOLETE short patchcount; mappatch_t patches[1]; }; // Strife uses a cleaned-up version struct maptexture_strife_t { struct mappatch_t { short originx; short originy; short patch; }; char name[8]; int masked; // boolean is not a good type here short width; short height; short patchcount; mappatch_t patches[1]; }; #pragma pack(pop)