From 64880ba1019f8c81470d697143b7bf48143b2fc8 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 14 May 2016 23:06:20 +0200 Subject: Separate into multiple compilation units, add color functions * fix cartesian coordinate determination --- src/ppm_pixel_stream.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/ppm_pixel_stream.h (limited to 'src/ppm_pixel_stream.h') 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 +#include + +#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_; + +}; + +} -- cgit v1.2.3