mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
28 lines
874 B
C++
28 lines
874 B
C++
/// @brief Include to load DDS, KTX or KMG textures from files or memory.
|
|
/// @file gli/load.hpp
|
|
|
|
#pragma once
|
|
|
|
#include "texture.hpp"
|
|
|
|
namespace gli
|
|
{
|
|
/// Loads a texture storage_linear from 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(char const* Path);
|
|
|
|
/// Loads a texture storage_linear from 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(std::string const& Path);
|
|
|
|
/// Loads a texture storage_linear from memory. Returns an empty storage_linear in case of failure.
|
|
///
|
|
/// @param Data Data of a texture
|
|
/// @param Size Size of the data
|
|
texture load(char const* Data, std::size_t Size);
|
|
}//namespace gli
|
|
|
|
#include "./core/load.inl"
|