|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
#include "video_core/utils.h"
|
|
|
|
|
|
|
|
|
|
namespace VideoCore {
|
|
|
|
|
/**
|
|
|
|
|
/**
|
|
|
|
|
* Dumps a texture to TGA
|
|
|
|
|
* @param filename String filename to dump texture to
|
|
|
|
|
* @param width Width of texture in pixels
|
|
|
|
@ -16,7 +16,7 @@ namespace VideoCore {
|
|
|
|
|
* @param raw_data Raw RGBA8 texture data to dump
|
|
|
|
|
* @todo This should be moved to some general purpose/common code
|
|
|
|
|
*/
|
|
|
|
|
void DumpTGA(std::string filename, int width, int height, u8* raw_data) {
|
|
|
|
|
void DumpTGA(std::string filename, int width, int height, u8* raw_data) {
|
|
|
|
|
TGAHeader hdr;
|
|
|
|
|
FILE* fout;
|
|
|
|
|
u8 r, g, b;
|
|
|
|
@ -40,5 +40,5 @@ namespace VideoCore {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fclose(fout);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} // namespace
|