示例#1
0
Scene* load_json_scene(const string& filename) {
    json_texture_cache.clear();
    json_texture_paths = { "" };
    auto scene = json_parse_scene(load_json(filename));
    json_texture_cache.clear();
    json_texture_paths = { "" };
    return scene;
}
示例#2
0
文件: scene.cpp 项目: okate/Raytrace
Scene* load_json_scene(const string& filename) {
    auto scene = json_parse_scene(load_json(filename));
    return scene;
}