diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /src/parsec/include/img_conv.h | |
| download | openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip | |
Diffstat (limited to 'src/parsec/include/img_conv.h')
| -rw-r--r-- | src/parsec/include/img_conv.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/parsec/include/img_conv.h b/src/parsec/include/img_conv.h new file mode 100644 index 0000000..26528b5 --- /dev/null +++ b/src/parsec/include/img_conv.h @@ -0,0 +1,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_ + + |
