X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_tdef.h;h=f45195d698b9a93d9336987d3ed69157b18a4a1e;hb=28b1be191222717943878f024cddac30b026318e;hp=3aeb85b1f529dc7a943190c6a3463ff2eb06a1c2;hpb=e42f649aa2ec07f95d127917fe27bc4131a63b01;p=16.git diff --git a/src/lib/16_tdef.h b/src/lib/16_tdef.h index 3aeb85b1..f45195d6 100755 --- a/src/lib/16_tdef.h +++ b/src/lib/16_tdef.h @@ -362,6 +362,11 @@ typedef struct #define NUMCHUNKS 416 //keen #define MAXSCANLINES 240 // size of ylookup table +typedef struct +{ + int width,height; +} pictabletype; + //video typedef struct { @@ -426,6 +431,7 @@ typedef struct word bordercolor; boolean fastpalette; byte far palette1[256][3],far palette2[256][3]; + pictabletype _seg *pictable; } video_t; //from scroll16 @@ -644,8 +650,27 @@ typedef struct //from 16_ca //========================================================================== +#define NOMAPS +//#define NOGRAPHICS +#define NOAUDIO + +#define MAPHEADERLINKED +//#define GRHEADERLINKED +#define AUDIOHEADERLINKED + #define NUMMAPS 4//39 -#define NUMSNDCHUNKS 84 +#define NUMSNDCHUNKS 4//3 +//#define NUMPICS 132//wolf3d wl6 + +#define STRUCTPIC 0 + + +#define DATADIR "data/" +#define GDICTNAME DATADIR"vgadict." +#define GHEADNAME DATADIR"vgahead." +#define GFILENAME DATADIR"vgagraph." +#define EXTENSION "hb1" + typedef struct { @@ -696,7 +721,19 @@ typedef struct //TODO: USE THIS!!!! word _seg *grstarts; // array of offsets in egagraph, -1 for sparse//long word _seg *audiostarts; // array of offsets in audio / audiot//long - huffnode huffnode; +#ifdef GRHEADERLINKED + huffnode *grhuffman; +#else + huffnode grhuffman[255]; +#endif + +#ifdef AUDIOHEADERLINKED + huffnode *audiohuffman; +#else + huffnode audiohuffman[255]; +#endif + + long chunkcomplen,chunkexplen; sd_t sd; //TODO: extend! and learn from keen/wolf/catacomb's code wwww