TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ OSLiscences()

OSLiscences::OSLiscences ( ApplicationState appState)

Definition at line 20 of file OSLiscences.cpp.

21{
22 appState = as;
23 std::string path = appState->constants.liscensesDir;
24
25 for (const auto &entry : fs::directory_iterator(path))
26 {
27 std::string path{ entry.path().u8string() };
28 std::string name{ entry.path().filename().u8string()};
29 bool tmp = false;
30 name = name.substr(0, name.size() - 3);
31 osls.push_back(std::make_pair(name, ReadShaderSourceFile(path, &tmp)));
32 }
33}