| 1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include <string>
- #include <nlohmann/json.hpp>
- #include <glm/vec3.hpp>
- #include <glm/vec2.hpp>
- #include <glm/mat4x4.hpp>
- 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 <typename T> T jsonFindDefault (nlohmann::json& data, const char *key, T defaultValue);
- template <typename T, typename S> T* jsonFindUserConfig (nlohmann::json& data, const char *key, S defaultValue);
- };
|