Starting day 19, blending.
This commit is contained in:
parent
dc973009fd
commit
128f522089
94 changed files with 15008 additions and 0 deletions
11
19-blending/src/utils.cpp
Normal file
11
19-blending/src/utils.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <fstream>
|
||||
#include "json.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
namespace utils {
|
||||
components::Scene load_scene_config(const std::string& config_file) {
|
||||
std::ifstream f{"config.json"};
|
||||
auto j = json::parse(f);
|
||||
return j["scene"].template get<components::Scene>();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue