X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fcommon%2Fimagelib.h;h=2c028bfd9d58e3cbcfa5460006b855e20fba81ce;hb=b243946c9ffd022cd5d82f2cf474ebfb125929b9;hp=37277170968c3266bfa6d9a368f45d78c8969af8;hpb=830125fad042fad35dc029b6eb57c8156ad7e176;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/common/imagelib.h b/tools/quake3/common/imagelib.h index 37277170..2c028bfd 100644 --- a/tools/quake3/common/imagelib.h +++ b/tools/quake3/common/imagelib.h @@ -39,6 +39,9 @@ void Save256Image( const char *name, byte *pixels, byte *palette, void LoadTGA( const char *filename, byte **pixels, int *width, int *height ); void LoadTGABuffer( const byte *buffer, const byte* enddata, byte **pic, int *width, int *height ); void WriteTGA( const char *filename, byte *data, int width, int height ); +void WriteTGAGray( const char *filename, byte *data, int width, int height ); int LoadJPGBuff( void *src_buffer, int src_size, unsigned char **pic, int *width, int *height ); void Load32BitImage( const char *name, unsigned **pixels, int *width, int *height ); + +void LoadKTXBufferFirstImage( const byte *buffer, size_t bufSize, byte **pic, int *picWidth, int *picHeight );