#include "quakedef.h"
#include "image.h"
#include "jpeg.h"
+#include "image_png.h"
#include "r_shadow.h"
int image_width;
else
{
image_buffer = (unsigned char *)Mem_Alloc(tempmempool, image_width * image_height * 4);
- Image_Copy8bitRGBA(f + 8, image_buffer, image_width * image_height, palette_complete);
+ Image_Copy8bitRGBA(f + 8, image_buffer, image_width * image_height, palette_transparent);
}
return image_buffer;
}
imageformats[] =
{
{"override/%s.tga", LoadTGA},
+ {"override/%s.png", PNG_LoadImage},
{"override/%s.jpg", JPEG_LoadImage},
{"textures/%s.tga", LoadTGA},
+ {"textures/%s.png", PNG_LoadImage},
{"textures/%s.jpg", JPEG_LoadImage},
{"textures/%s.pcx", LoadPCX},
{"textures/%s.wal", LoadWAL},
{"%s.tga", LoadTGA},
+ {"%s.png", PNG_LoadImage},
{"%s.jpg", JPEG_LoadImage},
{"%s.pcx", LoadPCX},
{"%s.lmp", LoadLMPRGBA},