#pragma once #include #include #include #include #include namespace WallpaperEngine::Core { glm::vec4 aToVector4 (const char* str); glm::vec3 aToVector3 (const char* str); glm::vec2 aToVector2 (const char* str); glm::vec4 aToVector4 (const std::string& str); glm::vec3 aToVector3 (const std::string& str); glm::vec2 aToVector2 (const std::string& str); glm::vec3 aToColorf (const char* str); glm::vec3 aToColorf (const std::string& str); glm::ivec3 aToColori (const char* str); glm::ivec3 aToColori (const std::string& str); nlohmann::json::iterator jsonFindRequired (nlohmann::json& data, const char *key, const char *notFoundMsg); nlohmann::json::iterator jsonFindRequired (nlohmann::json::iterator& data, const char *key, const char *notFoundMsg); template T jsonFindDefault (nlohmann::json& data, const char *key, T defaultValue); template T* jsonFindUserConfig (nlohmann::json& data, const char *key, S defaultValue); };