32 #include "../../Core/Math/rect.h"
33 #include "UICore/Display/Render/texture.h"
34 #include "texture_format.h"
49 static std::shared_ptr<PixelBufferSet>
create(
const PixelBufferPtr &
image);
58 virtual int width()
const = 0;
61 virtual int height()
const = 0;
73 virtual PixelBufferPtr
image(
int slice,
int level) = 0;
76 virtual void set_image(
int slice,
int level,
const PixelBufferPtr &image) = 0;
virtual void set_image(int slice, int level, const PixelBufferPtr &image)=0
Set the pixel buffer to be used for the specified slice and level.
virtual TextureDimensions dimensions() const =0
Returns the texture dimensions used by the image set.
static std::shared_ptr< PixelBufferSet > create(TextureDimensions dimensions, TextureFormat format, int width, int height=1, int slices=1)
Constructs an image set of the specified dimensions type and internal format.
virtual int slice_count() const =0
Returns the number of depth/array/cube slices in the set.
TextureFormat
Texture format.
Definition: texture_format.h:35
Set of images that combined form a complete texture.
Definition: pixel_buffer_set.h:42
virtual PixelBufferPtr image(int slice, int level)=0
Returns the pixel buffer for a specific slice and level.
virtual TextureFormat format() const =0
Returns the internal texture format used by the image.
TextureDimensions
Texture dimensions.
Definition: texture.h:82
virtual int base_level() const =0
Returns the lowest mip level specified in the set.
virtual int height() const =0
Returns the height of the image.
virtual int max_level() const =0
Returns the highest mip level specified in the set.
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
virtual int width() const =0
Returns the width of the image.
std::shared_ptr< PixelBufferSet > PixelBufferSetPtr
Definition: pixel_buffer_set.h:79
Definition: Application/application.h:35