diff options
Diffstat (limited to 'src/imgen.h')
-rw-r--r-- | src/imgen.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/imgen.h b/src/imgen.h index 35b798d..6954239 100644 --- a/src/imgen.h +++ b/src/imgen.h @@ -1,24 +1,13 @@ +#pragma once + #include <string> -#include <utility> -#include <fstream> #include <functional> -namespace imgen { - -using color = std::tuple<std::uint8_t, std::uint8_t, std::uint8_t>; +#include "color.h" -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_; +namespace imgen { -}; +using colored_vector = std::tuple<int, int, color>; void write_ppm( const std::string& path, |