diff options
Diffstat (limited to 'src/parsec/include/img_load.h')
| -rw-r--r-- | src/parsec/include/img_load.h | 45 |
1 files changed, 45 insertions, 0 deletions
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_ + + |
