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.
47 lines
1.8 KiB
47 lines
1.8 KiB
/// @brief Include to copy textures or a subset of either textures. These operations are performed without memory allocations. |
|
/// @file gli/clear.hpp |
|
|
|
#pragma once |
|
|
|
namespace gli |
|
{ |
|
/// Clear a complete texture |
|
template <typename texture_type> |
|
void clear(texture_type& Texture); |
|
|
|
/// Clear a complete texture |
|
template <typename texture_type, typename gen_type> |
|
void clear(texture_type& Texture, gen_type const& BlockData); |
|
|
|
/// Clear a specific image of a texture |
|
template <typename texture_type, typename gen_type> |
|
void clear(texture_type& Texture, size_t Layer, size_t Face, size_t Level, gen_type const& BlockData); |
|
|
|
// Clear an entire level of a texture |
|
template <typename texture_type, typename gen_type> |
|
void clear_level(texture_type& Texture, size_t BaseLevel, gen_type const& BlockData); |
|
|
|
// Clear multiple levels of a texture |
|
template <typename texture_type, typename gen_type> |
|
void clear_level(texture_type& Texture, size_t BaseLevel, size_t LevelCount, gen_type const& BlockData); |
|
|
|
// Clear an entire face of a texture |
|
template <typename texture_type, typename gen_type> |
|
void clear_face(texture_type& Texture, size_t BaseFace, gen_type const& BlockData); |
|
|
|
// Clear multiple faces of a texture |
|
template <typename texture_type, typename gen_type> |
|
void clear_face(texture_type& Texture, size_t BaseFace, size_t FaceCount, gen_type const& BlockData); |
|
|
|
// Clear an entire layer of a texture |
|
template <typename texture_type, typename gen_type> |
|
void clear_layer(texture_type& Texture, size_t BaseLayer, gen_type const& BlockData); |
|
|
|
// Clear multiple layers of a texture |
|
template <typename texture_type, typename gen_type> |
|
void clear_layer(texture_type& Texture, size_t BaseLayer, size_t LayerCount, gen_type const& BlockData); |
|
|
|
}//namespace gli |
|
|
|
#include "./core/clear.inl" |
|
|
|
|