UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TgaImageSupport.h File Reference
#include "CoreMinimal.h"
#include "HAL/Platform.h"
#include "Serialization/Archive.h"

Go to the source code of this file.

Classes

struct  FTGAFileHeader
 

Functions

IMAGEWRAPPER_API bool DecompressTGA_helper (const FTGAFileHeader *TGA, const int64 TGABufferLength, uint32 *TextureData, const int64 TextureDataSize)
 

Function Documentation

◆ DecompressTGA_helper()

IMAGEWRAPPER_API bool DecompressTGA_helper ( const FTGAFileHeader TGA,
const int64  TGABufferLength,
uint32 TextureData,
const int64  TextureDataSize 
)

This helper allows to decompress TGA data in a pre-allocated memory block. The pixel format is necessarily PF_A8R8G8B8.