#include <ImageLoader.hpp>
|
CU_API | ImageLoader (PxCompressionSupport support={}) |
|
CU_API void | registerLoader (String const &extension, ImageLoaderPtr loader) |
| Registers an image loader.
|
|
CU_API void | registerLoader (StringArray const &extensions, ImageLoaderPtr loader) |
| Registers an image loader.
|
|
CU_API void | unregisterLoader (String const &extension) |
| Unregisters the loader for given image file extension.
|
|
CU_API void | unregisterLoader (StringArray const &extensions) |
| Unregisters the loader for given image file extension.
|
|
CU_API Image | load (String const &name, Path const &path, ImageLoaderConfig const &config) const |
| Loads an image file data.
|
|
CU_API Image | load (String const &name, Path const &imagePath, uint8_t const *data, uint32_t size, ImageLoaderConfig const &config) const |
| Loads an image file data.
|
|
CU_API Image | load (String const &name, String const &imageFormat, uint8_t const *data, uint32_t size, ImageLoaderConfig const &config) const |
| Loads an image file data.
|
|
void | setCompressionSupport (PxCompressionSupport support) |
|
PxBufferConvertOptions const & | getOptions () const |
|
◆ ImageLoader()
◆ getOptions()
◆ load() [1/3]
Loads an image file data.
- Parameters
-
[in] | name | The image name. |
[in] | imagePath | Path to the image file. |
[in] | data | The image data. |
[in] | size | The image data size. |
[in] | config | The loader configuration. |
- Returns
- The image.
◆ load() [2/3]
Loads an image file data.
- Parameters
-
[in] | name | The image name. |
[in] | path | The image file path. |
[in] | config | The loader configuration. |
- Returns
- The image.
◆ load() [3/3]
Loads an image file data.
- Parameters
-
[in] | name | The image name. |
[in] | imageFormat | The image format, loader wise. |
[in] | data | The image data. |
[in] | size | The image data size. |
[in] | config | The loader configuration. |
- Returns
- The image.
◆ registerLoader() [1/2]
Registers an image loader.
- Parameters
-
[in] | extension | The image file extension. |
[in] | loader | The image loader. |
◆ registerLoader() [2/2]
CU_API void castor::ImageLoader::registerLoader |
( |
StringArray const & | extensions, |
|
|
ImageLoaderPtr | loader ) |
Registers an image loader.
- Parameters
-
[in] | extensions | The image file extensions list. |
[in] | loader | The image loader. |
◆ setCompressionSupport()
◆ unregisterLoader() [1/2]
CU_API void castor::ImageLoader::unregisterLoader |
( |
String const & | extension | ) |
|
Unregisters the loader for given image file extension.
- Parameters
-
[in] | extension | The image file extension. |
◆ unregisterLoader() [2/2]
CU_API void castor::ImageLoader::unregisterLoader |
( |
StringArray const & | extensions | ) |
|
Unregisters the loader for given image file extension.
- Parameters
-
[in] | extensions | The image file extensions list. |
The documentation for this class was generated from the following file: