From 9b34ab6db773568011dc85fd73156b63da377e01 Mon Sep 17 00:00:00 2001 From: Julian T Date: Fri, 14 Aug 2020 20:30:07 +0200 Subject: Better configuration --- app/config.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/config.hpp (limited to 'app/config.hpp') diff --git a/app/config.hpp b/app/config.hpp new file mode 100644 index 0000000..6e9962c --- /dev/null +++ b/app/config.hpp @@ -0,0 +1,22 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#include + +class Config { + public: + unsigned m_width, m_height; + unsigned m_maxhops, m_samples; + + unsigned m_framerate, m_workers; +}; + +class RendererConf : public Renderer { + public: + RendererConf(const Scene &scn, Vec3d eye, Vec3d target, Config &conf) + : Renderer(scn, eye, target, conf.m_width, conf.m_height, conf.m_maxhops) { + + } +}; + +#endif -- cgit v1.2.3