|
void | addLoader (ImageLoaderPtr loader) |
| Add another image loader to the handler, which will be invoked if existing loaders cannot load a given image.
|
|
StringSet | supportedExtensions () |
| Get a list of extensions supported by the handler.
|
|
bool | saveImage (const FilePath &filePath, ConstImagePtr image, bool verticalFlip=false) |
| Save image to disk. More...
|
|
ImagePtr | acquireImage (const FilePath &filePath, const Color4 &defaultColor=Color4(0.0f)) |
| Acquire an image from the cache or file system. More...
|
|
virtual bool | bindImage (ImagePtr image, const ImageSamplingProperties &samplingProperties) |
| Bind an image for rendering. More...
|
|
virtual bool | unbindImage (ImagePtr image) |
| Unbind an image, making it no longer active for rendering. More...
|
|
void | unbindImages () |
| Unbind all images that are currently stored in the cache.
|
|
void | setSearchPath (const FileSearchPath &path) |
| Set the search path to be used for finding images on the file system.
|
|
const FileSearchPath & | getSearchPath () const |
| Return the image search path.
|
|
void | setFilenameResolver (StringResolverPtr resolver) |
| Set the filename resolver for images.
|
|
StringResolverPtr | getFilenameResolver () const |
| Return the filename resolver for images.
|
|
virtual bool | createRenderResources (ImagePtr image, bool generateMipMaps, bool useAsRenderTarget=false) |
| Create rendering resources for the given image. More...
|
|
virtual void | releaseRenderResources (ImagePtr image=nullptr) |
| Release rendering resources for the given image, or for all cached images if no image pointer is specified. More...
|
|
void | clearImageCache () |
| Clear the contents of the image cache, first releasing any render resources associated with cached images.
|
|
ImagePtr | getZeroImage () const |
| Return a fallback image with zeroes in all channels.
|
|
ImageVec | getReferencedImages (ConstDocumentPtr doc) |
| Acquire all images referenced by the given document, and return the images in a vector.
|
|
Base image handler class.
Keeps track of images which are loaded from disk via supplied ImageLoader. Derived classes are responsible for determinining how to perform the logic for "binding" of these resources for a given target (such as a given shading language).