47 typedef size_t size_type;
48 typedef gli::format format_type;
49 typedef storage::dim_type dim_type;
50 typedef storage::data_type data_type;
58 dim_type
const & Dimensions);
72 format_type
format()
const;
78 size_type
size()
const;
82 template <
typename genType>
83 size_type
size()
const;
89 void const *
data()
const;
92 template <
typename genType>
96 template <
typename genType>
97 genType
const *
data()
const;
104 template <
typename genType>
105 void clear(genType
const & Texel);
110 template <
typename genType>
111 genType
load(dim_type
const & TexelCoord);
116 template <
typename genType>
117 void store(dim_type
const & TexelCoord, genType
const & Data);
126 std::shared_ptr<storage> Storage,
130 size_type BaseLevel);
132 std::shared_ptr<storage> Storage;
133 format_type
const Format;
134 size_type
const BaseLevel;
136 size_type
const Size;
138 data_type * compute_data(size_type BaseLayer, size_type BaseFace, size_type BaseLevel);
139 size_type compute_size(size_type Level)
const;
143 #include "./core/image.inl"
bool empty() const
Return whether the image instance is empty, no storage or description have been assigned to the insta...
size_type size() const
Return the memory size of an image instance storage in bytes.
format_type format() const
Return the image instance format.
dim_type dimensions() const
Return the dimensions of an image instance: width, height and depth.
void clear()
Clear the entire image storage with zeros.
void * data()
Return a pointer to the beginning of the image instance data.
image()
Create an empty image instance.
OpenGL Image (gli.g-truc.net)
void store(dim_type const &TexelCoord, genType const &Data)
Store the texel located at TexelCoord coordinates.
genType load(dim_type const &TexelCoord)
Load the texel located at TexelCoord coordinates.