From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/libparsec/include/gd_tabs.h | 134 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 src/libparsec/include/gd_tabs.h (limited to 'src/libparsec/include/gd_tabs.h') diff --git a/src/libparsec/include/gd_tabs.h b/src/libparsec/include/gd_tabs.h new file mode 100644 index 0000000..a405f21 --- /dev/null +++ b/src/libparsec/include/gd_tabs.h @@ -0,0 +1,134 @@ +/* + * PARSEC HEADER: gd_tabs.h + */ + +#ifndef _GD_TABS_H_ +#define _GD_TABS_H_ + + +// ---------------------------------------------------------------------------- +// GLOBAL DATA INFO TABLES - +// ---------------------------------------------------------------------------- + + +// object lod info ------------------------------------------------------------ +// +struct lodinfo_s { + + int numlods; + char** filetab; + geomv_t* lodmags; + geomv_t* lodmins; +}; + + +// object info table ---------------------------------------------------------- +// +struct objectinfo_s { + + dword type; // object type code + char* name; // object name (must be unique!) + char* file; // file object has been read from + lodinfo_s* lodinfo; // optional lod specification +}; + + +// texture info table --------------------------------------------------------- +// +struct textureinfo_s { + + TextureMap* texpointer; // pointer to actual texture struct + dword flags; // flagword + int width; // width in texels + int height; // height in texels + char* name; // texture name (must be unique!) + char* file; // file texture has been read from + char* standardbitmap; // texture bitmap in TEXFMT_STANDARD + char* loaderparams; // optional loading parameters +}; + +enum { + + TEXINFOFLAG_NONE = 0x00000000, + TEXINFOFLAG_USERPALETTE = 0x00000001, // don't touch texture palette + TEXINFOFLAG_PACKWASDISABLED = 0x00000100 // data was not read from pack +}; + + +// texfont info table --------------------------------------------------------- +// +struct texfontinfo_s { + + texfont_s* texfont; // pointer to actual texfont structure + dword flags; + int width; // width of single char in texels + int height; // height of single char in texels + char* name; // texfont name (must be unique!) + char* file; // file font has been read from + char* srcimage; // originally read data + int _mksiz32; +}; + + +// bitmap info table ---------------------------------------------------------- +// +struct bitmapinfo_s { + + char* bitmappointer; // pointer to current bitmap data + char* loadeddata; // pointer to original bitmap data + int width; // bitmap width + int height; // bitmap height + char* file; // file bitmap has been read from + char* name; // bitmap name (must be unique!) + int _mksiz32[2]; +}; + + +// charset info table --------------------------------------------------------- +// +struct charsetinfo_s { + + char* charsetpointer; // pointer to current font data + char* loadeddata; // pointer to original font data + dword* geompointer; // pointer to geometry table + int datasize; // size of actual font data in bytes + int width; // char width + int height; // char height + int srcwidth; // font bitmap width + dword flags; // flagword + char* file; // file font has been read from + TextureMap* fonttexture; // font converted to texture + int _mksiz64[6]; +}; + + +// sample info table ---------------------------------------------------------- +// +struct sampleinfo_s { + + char* name; + char* file; + char* samplepointer; + size_t size; + word flags; + short stereolevel; + int volume; + float samplefreq; + float stdfreq; +}; + + +// song info table ------------------------------------------------------------ +// +struct songinfo_s { + + char* songpointer; + char* name; + char* file; + int _mksiz16; +}; + + +#endif // _GD_TABS_H_ + + -- cgit v1.2.3