aboutsummaryrefslogtreecommitdiff
path: root/app/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/config.hpp')
-rw-r--r--app/config.hpp22
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