include/rays/image.h in rays-0.1.3 vs include/rays/image.h in rays-0.1.4

- old
+ new

@@ -2,12 +2,12 @@ #pragma once #ifndef __RAYS_IMAGE_H__ #define __RAYS_IMAGE_H__ +#include <xot/pimpl.h> #include <rays/colorspace.h> -#include <rays/helpers.h> namespace Rays { @@ -18,10 +18,12 @@ class Image { + typedef Image This; + public: Image (); Image ( @@ -52,15 +54,17 @@ bool operator ! () const; struct Data; - Impl<Data> self; + Xot::PImpl<Data, true> self; };// Image bool load_image (Image* image, const char* path, bool alphatexture = false); + + bool save_image (const Image& image, const char* path); }// Rays