Print notices about image files being written

This commit is contained in:
Matt Pharr
2011-08-16 06:31:26 +01:00
parent cb29c10660
commit 96af08e789
5 changed files with 5 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ savePPM(const char *fname, int w, int h)
fprintf(fp, "255\n");
fwrite(img, w * h * 3, 1, fp);
fclose(fp);
printf("Wrote image file %s\n", fname);
}

View File

@@ -100,6 +100,7 @@ savePPM(const char *fname, int w, int h)
fprintf(fp, "255\n");
fwrite(img, w * h * 3, 1, fp);
fclose(fp);
printf("Wrote image file %s\n", fname);
}

View File

@@ -64,6 +64,7 @@ writePPM(int *buf, int width, int height, const char *fn) {
fputc(c, fp);
}
fclose(fp);
printf("Wrote image file %s\n", fn);
}

View File

@@ -64,6 +64,7 @@ writePPM(int *buf, int width, int height, const char *fn) {
fputc(c, fp);
}
fclose(fp);
printf("Wrote image file %s\n", fn);
}

View File

@@ -90,6 +90,7 @@ static void writeImage(int *idImage, float *depthImage, int width, int height,
}
}
fclose(f);
printf("Wrote image file %s\n", filename);
}