]> git.cworth.org Git - apitrace/blobdiff - image/image.hpp
Use the right attrib_list terminator and support the remaining functions.
[apitrace] / image / image.hpp
index 7dd18c1225e821a0286ea11e0a73989be57acc51..7e13dd6f490cc97e40e24918e98073b405dcc8c6 100644 (file)
@@ -106,7 +106,18 @@ public:
         return writePNG(os);
     }
 
-    double compare(Image &ref);
+    void
+    writeRAW(std::ostream &os) const;
+
+    inline bool
+    writeRAW(const char *filename) const {
+       std::ofstream os(filename, std::ofstream::binary);
+       if (!os) {
+           return false;
+       }
+       writeRAW(os);
+       return true;
+    }
 };