aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/img_load.h
blob: 5d1c11340e5cd1a9018b01187ea9616f3b6e1e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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_