Module |
|
Header |
/Engine/Source/Developer/TargetPlatform/Public/Interfaces/ITextureFormat.h |
Include |
#include "Interfaces/ITextureFormat.h" |
virtual bool CompressImageEx
(
const struct FImage * Images,
const uint32 NumImages,
const struct FTextureBuildSettings & BuildSettings,
bool bImageHasAlphaChannel,
uint32 ExtData,
FCompressedImage2D & OutCompressedImage
) const
Compress an image (or images for a miptail) into a single mip blob.
true on success, false otherwise.
Parameter |
Description |
---|---|
Images |
The input image(s) |
Images |
The number of images (for a miptail, this number should match what was returned in GetFormatCapabilities, mostly used for verification) |
BuildSettings |
Build settings. |
bImageHasAlphaChannel |
true if the image has a non-white alpha channel. |
ExtData |
Extra data that the format may want to have passed back in to each compress call (makes the format class be stateless) |
OutCompressedMip |
The compressed image. |