14 typedef extent2d extent_type;
23 extent_type
const & Extent,
25 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
30 extent_type
const & Extent,
31 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
41 size_type BaseLayer, size_type MaxLayer,
42 size_type BaseFace, size_type MaxFace,
43 size_type BaseLevel, size_type MaxLevel,
44 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
49 size_type BaseFace, size_type MaxFace,
50 size_type BaseLevel, size_type MaxLevel);
56 extent_type
extent(size_type Level = 0)
const;
59 template <
typename genType>
60 genType
load(extent_type
const & TexelCoord, size_type Face, size_type Level)
const;
63 template <
typename genType>
64 void store(extent_type
const & TexelCoord, size_type Face, size_type Level, genType
const & Texel);
71 template <
typename genType>
72 void clear(genType
const & Texel);
75 template <
typename genType>
76 void clear(size_type Face, size_type Level, genType
const & Texel);
89 size_type index_cache(size_type Face, size_type Level)
const;
91 std::vector<cache> Caches;
95 #include "./core/texture_cube.inl"
Genetic texture class. It can support any target.
void clear()
Clear the entire texture storage with zeros.
Include to use 2d textures.
void store(extent_type const &TexelCoord, size_type Face, size_type Level, genType const &Texel)
Write a texel to a texture. The texture format must be uncompressed.
texture2d operator[](size_type Face) const
Create a view of the texture identified by Face in the texture cube.
Namespace where all the classes and functions provided by GLI are exposed.
texture_cube()
Create an empty texture cube.
extent_type extent(size_type Level=0) const
Return the dimensions of a texture instance: width and height where both should be equal...
format
Texture data format.
genType load(extent_type const &TexelCoord, size_type Face, size_type Level) const
Fetch a texel from a texture. The texture format must be uncompressed.