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/parsec/include/img_load.h | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/parsec/include/img_load.h (limited to 'src/parsec/include/img_load.h') diff --git a/src/parsec/include/img_load.h b/src/parsec/include/img_load.h new file mode 100644 index 0000000..5d1c113 --- /dev/null +++ b/src/parsec/include/img_load.h @@ -0,0 +1,45 @@ +/* + * PARSEC HEADER: img_load.h + */ + +#ifndef _IMG_LOAD_H_ +#define _IMG_LOAD_H_ + + +// forward declarations +struct format_3df_s; +struct imgreadinfo_s; +struct imgtotexdata_s; + + +// image reading info + +struct imgreadinfo_s { + + int mapwidth; // -1 == use default + int mapheight; // -1 == use default + + int lodlarge; // -1 == use default + int lodsmall; // -1 == use default + + int retilewidth; // -1 == use default + int retileheight; // -1 == use default + + int spacing; + + format_3df_s* texfmtgr; +}; + + +// external functions + +int IMG_ParseLoadingParameters( const char *loaderparams, imgreadinfo_s *imgreadinfo ); +int IMG_CheckMapGeometry( imgreadinfo_s *imgreadinfo, int width, int height ); +void IMG_CheckLodSpecs( imgreadinfo_s *imgreadinfo, int lgside ); +void IMG_CreateTexture( int insertindex, imgtotexdata_s *imgtotexdata, dword texgeometry, int inputwidth, int inputheight, texfont_s *texfont ); +int IMG_LoadGenericTexture(const char *fname, int insertindex, char *loaderparams, texfont_s *texfont); + + +#endif // _IMG_LOAD_H_ + + -- cgit v1.2.3