mirror of
https://github.com/dpethes/rerogue.git
synced 2025-06-07 18:58:32 +02:00
hmt parser: save texture images for image type 1
This commit is contained in:
parent
f185759871
commit
72f438b0d8
@ -33,7 +33,7 @@ end;
|
|||||||
procedure SaveImage(var image: TRSImage; const outname: string);
|
procedure SaveImage(var image: TRSImage; const outname: string);
|
||||||
begin
|
begin
|
||||||
case image.type_ of
|
case image.type_ of
|
||||||
0: pnm_save(outname + '.pnm', image.pixels, image.width, image.height);
|
0, 1: pnm_save(outname + '.pnm', image.pixels, image.width, image.height);
|
||||||
//3: WriteTga(outname + '.tga', image.pixels, image.width, image.height, image.width * image.height * 4);
|
//3: WriteTga(outname + '.tga', image.pixels, image.width, image.height, image.width * image.height * 4);
|
||||||
4: pgm_save(outname + '.pgm', image.pixels, image.width, image.height);
|
4: pgm_save(outname + '.pgm', image.pixels, image.width, image.height);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user