diff options
author | Julian T <julian@jtle.dk> | 2020-08-14 20:30:07 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-16 21:05:58 +0200 |
commit | 9b34ab6db773568011dc85fd73156b63da377e01 (patch) | |
tree | 2511b89ecdf948826e51d342610635b7e8dfbf33 /app/config.hpp | |
parent | 5ca04e5b2ec8eef88df6cbd4e3d09ac7dab55c0d (diff) |
Better configuration
Diffstat (limited to 'app/config.hpp')
-rw-r--r-- | app/config.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
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 <render.hpp> + +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 |