40 typedef dim2_t dim_type;
41 typedef vec2 texcoord_type;
50 dim_type
const & Dimensions,
56 dim_type
const & Dimensions);
66 size_type BaseLayer, size_type MaxLayer,
67 size_type BaseFace, size_type MaxFace,
68 size_type BaseLevel, size_type MaxLevel);
73 size_type BaseLevel, size_type MaxLevel);
81 template <
typename genType>
82 genType fetch(texture2D::dim_type
const & TexelCoord, texture2D::size_type Level);
84 template <
typename genType>
85 void write(texture2D::dim_type
const & TexelCoord, texture2D::size_type Level, genType
const & Color);
89 #include "./core/texture2d.inl"
dim_type dimensions() const
Return the dimensions of a texture instance: width and height.
OpenGL Image (gli.g-truc.net)
texture2D()
Create an empty texture 2D.
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.
OpenGL Image (gli.g-truc.net)