set the include directory
[AROS-Contrib.git] / Games / Doom / w_wad.h
blob3d9c7fc138b760485f312a2a3bf613d9aefa6da6
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
15 // for more details.
17 // DESCRIPTION:
18 // WAD I/O functions.
20 //-----------------------------------------------------------------------------
23 #ifndef __W_WAD__
24 #define __W_WAD__
27 #ifdef __GNUG__
28 #pragma interface
29 #endif
33 // TYPES
35 typedef struct
37 // Should be "IWAD" or "PWAD".
38 char identification[4];
39 int numlumps;
40 int infotableofs;
42 } wadinfo_t;
45 typedef struct
47 int filepos;
48 int size;
49 char name[8];
51 } filelump_t;
54 // WADFILE I/O related stuff.
56 typedef struct
58 char name[8];
59 FILE *handle;
60 int position;
61 int size;
62 } lumpinfo_t;
65 extern void** lumpcache;
66 extern lumpinfo_t* lumpinfo;
67 extern int numlumps;
69 void W_InitMultipleFiles (char** filenames);
70 void W_Reload (void);
72 int W_CheckNumForName (char* name);
73 int W_GetNumForName (char* name);
75 int W_LumpLength (int lump);
76 void W_ReadLump (int lump, void *dest);
78 void* W_CacheLumpNum (int lump, int tag);
79 void* W_CacheLumpName (char* name, int tag);
84 #endif
85 //-----------------------------------------------------------------------------
87 // $Log$
88 // Revision 1.1 2000/02/29 18:21:07 stegerg
89 // Doom port based on ADoomPPC. Read README.AROS!
92 //-----------------------------------------------------------------------------