diff options
Diffstat (limited to 'source/10-common/Utils.hpp')
-rw-r--r-- | source/10-common/Utils.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/10-common/Utils.hpp b/source/10-common/Utils.hpp index 9f28aad..9560b57 100644 --- a/source/10-common/Utils.hpp +++ b/source/10-common/Utils.hpp @@ -5,6 +5,8 @@ #include <cstring> #include <filesystem> #include <glm/glm.hpp> +#include <string> +#include <string_view> namespace Utils { @@ -17,6 +19,8 @@ enum IoMode { FILE* OpenCstdioFile(const std::filesystem::path& path, IoMode mode, bool binary = false); FILE* OpenCstdioFile(const char* path, IoMode mode, bool binary = false); +std::string ReadFileAsString(const std::filesystem::path& path); + constexpr float Abs(float v) noexcept { return v < 0.0f ? -v : v; } |