Start day 26 Advanced Data and Advanced GLSL.
This commit is contained in:
parent
9310215aa3
commit
6c542eb014
119 changed files with 15705 additions and 0 deletions
11
26-advanced-data-glsl/src/utils.cpp
Normal file
11
26-advanced-data-glsl/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