UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TgaImageWrapper.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "ImageWrapperBase.h"
7
8
13{
14
15public:
19 bool LoadTGAHeader();
20
21 static bool IsTGAHeader(const void * CompressedData,int64 CompressedDataLength);
22
23public:
24
25 //~ FImageWrapper interface
26
27 virtual void Compress(int32 Quality) override;
28 virtual bool SetCompressed(const void* InCompressedData, int64 InCompressedSize) override;
29 virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override;
30
31 virtual bool CanSetRawFormat(const ERGBFormat InFormat, const int32 InBitDepth) const override;
33
34private:
36 int32 ColorMapType;
37 uint8 ImageTypeCode;
38};
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ERGBFormat
Definition IImageWrapper.h:76
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition ImageWrapperBase.h:17
TArray64< uint8 > CompressedData
Definition ImageWrapperBase.h:166
Definition TgaImageWrapper.h:13
virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override
Definition TgaImageWrapper.cpp:131
virtual bool CanSetRawFormat(const ERGBFormat InFormat, const int32 InBitDepth) const override
Definition TgaImageWrapper.cpp:12
bool LoadTGAHeader()
Definition TgaImageWrapper.cpp:166
static bool IsTGAHeader(const void *CompressedData, int64 CompressedDataLength)
Definition TgaImageWrapper.cpp:148
virtual bool SetCompressed(const void *InCompressedData, int64 InCompressedSize) override
Definition TgaImageWrapper.cpp:111
virtual ERawImageFormat::Type GetSupportedRawFormat(const ERawImageFormat::Type InFormat) const override
Definition TgaImageWrapper.cpp:18
Type
Definition ImageCore.h:57