wolf3d

The original open source release of Wolfenstein 3D
Log | Files | Refs

ID_HEADS.H (2080B)


      1 // ID_GLOB.H
      2 
      3 
      4 #include <ALLOC.H>
      5 #include <CTYPE.H>
      6 #include <DOS.H>
      7 #include <ERRNO.H>
      8 #include <FCNTL.H>
      9 #include <IO.H>
     10 #include <MEM.H>
     11 #include <PROCESS.H>
     12 #include <STDIO.H>
     13 #include <STDLIB.H>
     14 #include <STRING.H>
     15 #include <SYS\STAT.H>
     16 #include <VALUES.H>
     17 #include <DIR.H>
     18 #define __ID_GLOB__
     19 #include "VERSION.H"
     20 
     21 //--------------------------------------------------------------------------
     22 
     23 extern	char		far signon;
     24 
     25 #define	introscn	signon
     26 
     27 #ifdef JAPAN
     28 #ifdef JAPDEMO
     29 #include "FOREIGN\JAPAN\GFXV_WJ1.H"
     30 #else
     31 #include "FOREIGN\JAPAN\GFXV_WJ6.H"
     32 #endif
     33 #include "AUDIOWL6.H"
     34 #include "MAPSWL6.H"
     35 #else
     36 
     37 #ifndef SPEAR
     38 
     39 #include "GFXV_WL6.H"
     40 #include "AUDIOWL6.H"
     41 #include "MAPSWL6.H"
     42 
     43 #else
     44 
     45 #ifndef SPEARDEMO
     46 #include "GFXV_SOD.H"
     47 #include "AUDIOSOD.H"
     48 #include "MAPSSOD.H"
     49 #else
     50 #include "GFXV_SDM.H"
     51 #include "AUDIOSDM.H"
     52 #include "MAPSSDM.H"
     53 #endif
     54 
     55 #endif
     56 #endif
     57 //-----------------
     58 
     59 
     60 #define GREXT	"VGA"
     61 
     62 //
     63 //	ID Engine
     64 //	Types.h - Generic types, #defines, etc.
     65 //	v1.0d1
     66 //
     67 
     68 typedef	enum	{false,true}	boolean;
     69 typedef	unsigned	char		byte;
     70 typedef	unsigned	int			word;
     71 typedef	unsigned	long		longword;
     72 typedef	byte *					Ptr;
     73 
     74 typedef	struct
     75 		{
     76 			int	x,y;
     77 		} Point;
     78 typedef	struct
     79 		{
     80 			Point	ul,lr;
     81 		} Rect;
     82 
     83 #define	nil	((void *)0)
     84 
     85 
     86 #include "ID_MM.H"
     87 #include "ID_PM.H"
     88 #include "ID_CA.H"
     89 #include "ID_VL.H"
     90 #include "ID_VH.H"
     91 #include "ID_IN.H"
     92 #include "ID_SD.H"
     93 #include "ID_US.H"
     94 
     95 
     96 void	Quit (char *error);		// defined in user program
     97 
     98 //
     99 // replacing refresh manager with custom routines
    100 //
    101 
    102 #define	PORTTILESWIDE		20      // all drawing takes place inside a
    103 #define	PORTTILESHIGH		13		// non displayed port of this size
    104 
    105 #define UPDATEWIDE			PORTTILESWIDE
    106 #define UPDATEHIGH			PORTTILESHIGH
    107 
    108 #define	MAXTICS				10
    109 #define DEMOTICS			4
    110 
    111 #define	UPDATETERMINATE	0x0301
    112 
    113 extern	unsigned	mapwidth,mapheight,tics;
    114 extern	boolean		compatability;
    115 
    116 extern	byte		*updateptr;
    117 extern	unsigned	uwidthtable[UPDATEHIGH];
    118 extern	unsigned	blockstarts[UPDATEWIDE*UPDATEHIGH];
    119 
    120 extern	byte		fontcolor,backcolor;
    121 
    122 #define SETFONTCOLOR(f,b) fontcolor=f;backcolor=b;
    123