You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
25 lines
732 B
25 lines
732 B
/// @brief Include to copy textures, images or a subset of either textures or an images. These operations will cause memory allocations. |
|
/// @file gli/convert.hpp |
|
|
|
#pragma once |
|
|
|
#include "texture1d.hpp" |
|
#include "texture1d_array.hpp" |
|
#include "texture2d.hpp" |
|
#include "texture2d_array.hpp" |
|
#include "texture3d.hpp" |
|
#include "texture_cube.hpp" |
|
#include "texture_cube_array.hpp" |
|
|
|
namespace gli |
|
{ |
|
/// Convert texture data to a new format |
|
/// |
|
/// @param Texture Source texture, the format must be uncompressed. |
|
/// @param Format Destination Texture format, it must be uncompressed. |
|
template <typename texture_type> |
|
texture_type convert(texture_type const& Texture, format Format); |
|
|
|
}//namespace gli |
|
|
|
#include "./core/convert.inl"
|
|
|