42 class ImageImportDescription_Impl;
119 std::shared_ptr<ImageImportDescription_Impl> impl;
bool is_cached() const
Returns if this image should be cached.
PixelBuffer process(PixelBuffer &image) const
Process the pixel buffers depending of the chosen settings.
void set_premultiply_alpha(bool enable)
Set the premultiply alpha setting.
Image Import Description Class.
Definition: image_import_description.h:49
ImageImportDescription()
Constructs a image import description with default values.
void set_srgb(bool enable)
Controls if the image is uploaded as a sRGB texture or not.
bool is_srgb() const
Returns the sRGB setting.
bool get_premultiply_alpha() const
Returns the premultiply alpha setting.
void set_cached(bool enable)
Controls if this image can be cached.
~ImageImportDescription()
Pixel data container.
Definition: pixel_buffer.h:69
void set_flip_vertical(bool enable)
Set the flip vertical setting.
bool flip_vertical() const
Returns the flip vertical setting.
std::function< PixelBuffer(PixelBuffer &)> & func_process()
User defined fine control of the pixel buffer.