6#ifndef MATERIALX_STBIMAGELOADER_H
7#define MATERIALX_STBIMAGELOADER_H
14MATERIALX_NAMESPACE_BEGIN
27 _extensions.insert(BMP_EXTENSION);
28 _extensions.insert(GIF_EXTENSION);
29 _extensions.insert(HDR_EXTENSION);
30 _extensions.insert(JPG_EXTENSION);
31 _extensions.insert(JPEG_EXTENSION);
32 _extensions.insert(PIC_EXTENSION);
33 _extensions.insert(PNG_EXTENSION);
34 _extensions.insert(PSD_EXTENSION);
35 _extensions.insert(TGA_EXTENSION);
45 bool verticalFlip =
false)
override;
51MATERIALX_NAMESPACE_END
shared_ptr< const Image > ConstImagePtr
A shared pointer to a const image.
Definition: Image.h:26
shared_ptr< Image > ImagePtr
A shared pointer to an image.
Definition: Image.h:23
Image handler interfaces.
std::shared_ptr< class StbImageLoader > StbImageLoaderPtr
Shared pointer to an StbImageLoader.
Definition: StbImageLoader.h:17
A generic file path, supporting both syntactic and file system operations.
Definition: File.h:27
Abstract base class for file-system image loaders.
Definition: ImageHandler.h:108
Stb image file loader.
Definition: StbImageLoader.h:22
bool saveImage(const FilePath &filePath, ConstImagePtr image, bool verticalFlip=false) override
Save an image to the file system.
ImagePtr loadImage(const FilePath &filePath) override
Load an image from the file system.
static StbImageLoaderPtr create()
Create a new stb image loader.
Definition: StbImageLoader.h:40