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/imgen.h | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'src/imgen.h') 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 -#include -#include #include -namespace imgen { - -using color = std::tuple; +#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; void write_ppm( const std::string& path, -- cgit v1.2.3