]> git.cworth.org Git - apitrace/blobdiff - image.hpp
Embedded the call no in PNM images as a comment.
[apitrace] / image.hpp
index 44fc4f4352252b148699097c08cef57afa16d523..dc53ec990ee3a19f931f5e9160269c7e0c875169 100644 (file)
--- a/image.hpp
+++ b/image.hpp
@@ -83,14 +83,14 @@ public:
 
     bool writeBMP(const char *filename) const;
 
-    void writePNM(std::ostream &os) const;
+    void writePNM(std::ostream &os, const char *comment = NULL) const;
 
-    inline bool writePNM(const char *filename) const {
+    inline bool writePNM(const char *filename, const char *comment = NULL) const {
         std::ofstream os(filename, std::ofstream::binary);
         if (!os) {
             return false;
         }
-        writePNM(os);
+        writePNM(os, comment);
         return true;
     }