32 #include "../../Core/Math/rect.h" 33 #include "../Render/texture.h" 34 #include "texture_format.h" 42 class PixelBufferSet_Impl;
59 explicit operator bool()
const {
return bool(impl); }
92 std::shared_ptr<PixelBufferSet_Impl> impl;
void throw_if_null() const
Throw an exception if this object is invalid.
Pixel data container.
Definition: pixel_buffer.h:67
TextureDimensions
Texture dimensions.
Definition: texture.h:90
TextureFormat get_format() const
Returns the internal texture format used by the image.
Set of images that combined form a complete texture.
Definition: pixel_buffer_set.h:45
PixelBufferSet()
Constructs a null instance.
TextureDimensions get_dimensions() const
Returns the texture dimensions used by the image set.
bool is_null() const
Returns true if this object is invalid.
Definition: pixel_buffer_set.h:58
TextureFormat
Texture format.
Definition: texture_format.h:38
int get_width() const
Returns the width of the image.
void set_image(int slice, int level, const PixelBuffer &image)
Set the pixel buffer to be used for the specified slice and level.
int get_max_level() const
Returns the highest mip level specified in the set.
int get_slice_count() const
Returns the number of depth/array/cube slices in the set.
int get_height() const
Returns the height of the image.
PixelBuffer get_image(int slice, int level)
Returns the pixel buffer for a specific slice and level.
int get_base_level() const
Returns the lowest mip level specified in the set.