15 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 BaseLevel, size_type MaxLevel);
55 extent_type
extent(size_type Level = 0)
const;
58 template <
typename gen_type>
59 gen_type
load(extent_type
const& TexelCoord, size_type Level)
const;
62 template <
typename gen_type>
63 void store(extent_type
const& TexelCoord, size_type Level, gen_type
const& Texel);
67 #include "./core/texture2d.inl" Include to use images, a representation of a single texture level.
format
Texture data format.
Namespace where all the classes and functions provided by GLI are exposed.
void store(extent_type const &TexelCoord, size_type Level, gen_type const &Texel)
Write a texel to a texture. The texture format must be uncompressed.
extent_type extent(size_type Level=0) const
Return the dimensions of a texture instance: width and height.
Genetic texture class. It can support any target.
image operator[](size_type Level) const
Create a view of the image identified by Level in the mipmap chain of the texture.
Include to use generic textures which can represent any texture target but they don't have target spe...
Image, representation for a single texture level.
texture2d()
Create an empty texture 2D.
gen_type load(extent_type const &TexelCoord, size_type Level) const
Fetch a texel from a texture. The texture format must be uncompressed.