Interface for image wrapper modules.
更多...
#include <IImageWrapperModule.h>
|
| virtual TSharedPtr< IImageWrapper > | CreateImageWrapper (const EImageFormat InFormat)=0 |
| | Create a helper of a specific type 更多...
|
| |
| virtual EImageFormat | DetectImageFormat (const void *InCompressedData, int64 InCompressedSize)=0 |
| | Detect image format by looking at the first few bytes of the compressed image data. 更多...
|
| |
|
virtual | ~IImageWrapperModule () |
| | Virtual destructor.
|
| |
| virtual bool | IsGameModule () const |
| | Returns true if this module hosts gameplay code 更多...
|
| |
|
virtual void | PostLoadCallback () |
| | Called after the module has been reloaded
|
| |
|
virtual void | PreUnloadCallback () |
| | Called before the module has been unloaded
|
| |
| virtual void | ShutdownModule () |
| | Called before the module is unloaded, right before the module object is destroyed. 更多...
|
| |
| virtual void | StartupModule () |
| | Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
|
| |
| virtual bool | SupportsAutomaticShutdown () |
| | Override this to set whether your module would like cleanup on application shutdown 更多...
|
| |
| virtual bool | SupportsDynamicReloading () |
| | Override this to set whether your module is allowed to be unloaded on the fly 更多...
|
| |
|
virtual | ~IModuleInterface () |
| | Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface
|
| |
Interface for image wrapper modules.
◆ CreateImageWrapper()
Create a helper of a specific type
- 参数
-
| InFormat | - The type of image we want to deal with |
- 返回
- The helper base class to manage the data
◆ DetectImageFormat()
| virtual EImageFormat IImageWrapperModule::DetectImageFormat |
( |
const void * |
InCompressedData, |
|
|
int64 |
InCompressedSize |
|
) |
| |
|
pure virtual |
Detect image format by looking at the first few bytes of the compressed image data.
You can call this method as soon as you have 8-16 bytes of compressed file content available.
- 参数
-
| InCompressedData | The raw image header. |
| InCompressedSize | The size of InCompressedData. |
- 返回
- the detected format or EImageFormat::Invalid if the method could not detect the image format.
该类的文档由以下文件生成: