]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.h
added md4four map checksumming, since QW servers seem to be very picky about map...
[xonotic/darkplaces.git] / image.h
diff --git a/image.h b/image.h
index 1a9e30d11c3dea69f0ee26bbdf3be698efca39ad..944020e6cfd1fa225cf4e9cc600453991313f5e9 100644 (file)
--- a/image.h
+++ b/image.h
@@ -21,7 +21,7 @@ void Image_Copy8bitRGBA(const unsigned char *in, unsigned char *out, int pixels,
 // makes a RGBA mask from RGBA input, in can be the same as out
 int image_makemask (const unsigned char *in, unsigned char *out, int size);
 
-unsigned char *LoadTGA (const unsigned char *f, int matchwidth, int matchheight);
+unsigned char *LoadTGA (const unsigned char *f, int filesize, int matchwidth, int matchheight);
 
 // loads a texture, as pixel data
 unsigned char *loadimagepixels (const char *filename, qboolean complain, int matchwidth, int matchheight);
@@ -61,7 +61,7 @@ void Image_Resample (const void *indata, int inwidth, int inheight, int indepth,
 void Image_MipReduce(const unsigned char *in, unsigned char *out, int *width, int *height, int *depth, int destwidth, int destheight, int destdepth, int bytesperpixel);
 
 // only used by menuplyr coloring
-unsigned char *LoadLMP (const unsigned char *f, int matchwidth, int matchheight, qboolean loadAs8Bit);
+unsigned char *LoadLMP (const unsigned char *f, int filesize, int matchwidth, int matchheight, qboolean loadAs8Bit);
 
 void Image_HeightmapToNormalmap(const unsigned char *inpixels, unsigned char *outpixels, int width, int height, int clamp, float bumpscale);
 
@@ -77,7 +77,7 @@ typedef struct imageskin_s
 }
 imageskin_t;
 
-int image_loadskin(imageskin_t *s, char *name);
+int image_loadskin(imageskin_t *s, const char *name);
 void image_freeskin(imageskin_t *s);
 
 #endif