1 #ifndef __SHAPE_DEFINITIONS_H 2 #define __SHAPE_DEFINITIONS_H 3 /* 4 SHAPE_DEFINITIONS.H 5 6 Copyright (C) 1991-2001 and beyond by Bungie Studios, Inc. 7 and the "Aleph One" developers. 8 9 This program is free software; you can redistribute it and/or modify 10 it under the terms of the GNU General Public License as published by 11 the Free Software Foundation; either version 3 of the License, or 12 (at your option) any later version. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License for more details. 18 19 This license is contained in the file "COPYING", 20 which is included with this source code; it is available online at 21 http://www.gnu.org/licenses/gpl.html 22 23 Tuesday, August 29, 1995 9:56:56 AM (Jason) 24 25 Aug 14, 2000 (Loren Petrich): 26 Turned collection and shading-table handles into pointers, 27 because handles are needlessly MacOS-specific, 28 and because these are variable-format objects. 29 */ 30 31 #include "shape_descriptors.h" 32 33 struct collection_definition; 34 35 /* ---------- structures */ 36 37 struct collection_header /* 32 bytes on disk */ 38 { 39 int16 status; 40 uint16 flags; 41 42 int32 offset, length; 43 int32 offset16, length16; 44 45 // LP: handles to pointers 46 collection_definition *collection; 47 byte *shading_tables; 48 }; 49 const int SIZEOF_collection_header = 32; 50 51 /* ---------- globals */ 52 53 static struct collection_header collection_headers[MAXIMUM_COLLECTIONS]; 54 55 #endif 56