blob: 26528b5a775c9a411b7b5a0d050ecccd752c1db9 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* PARSEC HEADER: img_conv.h
*/
#ifndef _IMG_CONV_H_
#define _IMG_CONV_H_
// retiling info to create a texfont texture
struct retileinfo_s {
int srcwidth;
int srcheight;
int tilewidth;
int tileheight;
int spacing;
texfont_s* texfont;
};
// forward declaration
struct format_3df_s;
// image to texture conversion info
struct imgtotexdata_s {
char* texbitmap;
int width;
int height;
int lodloaded;
int lodlarge;
int lodsmall;
dword format; // TEXFMT
format_3df_s* texfmtgr;
retileinfo_s* retileinfo;
};
// external functions
char *IMG_ConvertTextureImageData( imgtotexdata_s *imgtotexdata, int swaprgba );
// external variables
extern int image_mirror_vertically;
extern int image_invert_pixels;
extern int image_compress_data;
extern int image_lods[];
#endif // _IMG_CONV_H_
|