From 6bdf3ab65a7c1e98595ad167479b94a82184a444 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sat, 24 Jul 2021 17:32:49 +0200 Subject: Clean up includes, scene class, simplify scene buffer access from main --- include/utils.hpp | 37 +++---------------------------------- 1 file changed, 3 insertions(+), 34 deletions(-) (limited to 'include/utils.hpp') diff --git a/include/utils.hpp b/include/utils.hpp index 4683e86..b00db81 100644 --- a/include/utils.hpp +++ b/include/utils.hpp @@ -1,42 +1,11 @@ #ifndef __UTILS_HPP_ #define __UTILS_HPP_ -#include -#include +#include #include -#include "vec3.hpp" -#include "sphere.hpp" -#include "camera.hpp" -#include "bvh-node.hpp" - -struct input_data { - color sky_color; - color ground_color; - - camera cam; - - sphere spheres[512]; - bvh_node nodes[1024]; - - uint32_t max_bounce; - - // Output image resolution - uint32_t width; - uint32_t height; - - uint32_t sample_index; - - uint32_t spheres_count; - uint32_t enable_dof; - uint32_t debug_bvh; - uint32_t padding; -}; - -std::vector get_shader_code(const char* path); -std::vector get_shader_code(std::string& path); - -struct input_data create_inputs(uint32_t width, uint32_t height); +std::vector read_file(const char* path); +std::vector read_file(std::string& path); #define PI 3.14159265359 -- cgit v1.3