diff options
Diffstat (limited to '3rdparty/glm/test/external/gli/load_kmg.hpp')
| -rw-r--r-- | 3rdparty/glm/test/external/gli/load_kmg.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/3rdparty/glm/test/external/gli/load_kmg.hpp b/3rdparty/glm/test/external/gli/load_kmg.hpp new file mode 100644 index 00000000000..05e250fae74 --- /dev/null +++ b/3rdparty/glm/test/external/gli/load_kmg.hpp @@ -0,0 +1,27 @@ +/// @brief Include to load KMG textures from files or memory. +/// @file gli/load_kmg.hpp + +#pragma once + +#include "texture.hpp" + +namespace gli +{ + /// Loads a texture storage_linear from KMG (Khronos Image) file. Returns an empty storage_linear in case of failure. + /// + /// @param Path Path of the file to open including filaname and filename extension + texture load_kmg(char const* Path); + + /// Loads a texture storage_linear from KMG (Khronos Image) file. Returns an empty storage_linear in case of failure. + /// + /// @param Path Path of the file to open including filaname and filename extension + texture load_kmg(std::string const& Path); + + /// Loads a texture storage_linear from KMG (Khronos Image) memory. Returns an empty storage_linear in case of failure. + /// + /// @param Data Pointer to the beginning of the texture container data to read + /// @param Size Size of texture container Data to read + texture load_kmg(char const* Data, std::size_t Size); +}//namespace gli + +#include "./core/load_kmg.inl" |
