diff options
Diffstat (limited to 'src/ppm_pixel_stream.h')
-rw-r--r-- | src/ppm_pixel_stream.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ppm_pixel_stream.h b/src/ppm_pixel_stream.h new file mode 100644 index 0000000..9d8f5a8 --- /dev/null +++ b/src/ppm_pixel_stream.h @@ -0,0 +1,23 @@ +#pragma once + +#include <string> +#include <fstream> + +#include "color.h" + +namespace imgen { + +class ppm_pixel_stream { + public: + ppm_pixel_stream(const std::string& path, + const std::size_t width, + const std::size_t height); + + ppm_pixel_stream& operator<<(const color& value); + + private: + std::ofstream stream_; + +}; + +} |