From 690b72664ca8d471f5c117f6ed87aeae2de0a208 Mon Sep 17 00:00:00 2001 From: Julian T Date: Tue, 11 Aug 2020 21:21:02 +0200 Subject: Defuse coloring --- src/render.hpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/render.hpp') diff --git a/src/render.hpp b/src/render.hpp index 3fd84b1..bb4e9c5 100644 --- a/src/render.hpp +++ b/src/render.hpp @@ -5,20 +5,6 @@ #include "ray.hpp" #include "scene.hpp" -class Color : public Vec3d { - public: - Color() {} - Color(const Vec3d &v) : Vec3d(v) {} - Color(double r, double g, double b) : Vec3d(r, g, b) {} - - uint8_t r() { return m_x * 255; } - uint8_t g() { return m_y * 255; } - uint8_t b() { return m_z * 255; } - - void clamp(); - -}; - class Renderer { public: Renderer(const Scene &scn, Vec3d eye, Vec3d target, unsigned width, unsigned height); -- cgit v1.2.3