UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Color.h File Reference

Go to the source code of this file.

Classes

struct  FLinearColor
 
struct  FColor
 
struct  TIsPODType< FColor >
 
struct  TIsPODType< FLinearColor >
 
struct  TIsPODType< FDXT1 >
 
struct  TIsPODType< FDXT5 >
 
struct  TIsPODType< FDXTColor16 >
 
struct  TIsPODType< FDXTColor565 >
 

Enumerations

enum class  EGammaSpace : uint8 { Linear , Pow22 , sRGB , Invalid }
 

Functions

 DECLARE_INTRINSIC_TYPE_LAYOUT (FLinearColor)
 
UE_FORCEINLINE_HINT FLinearColor operator* (float Scalar, const FLinearColor &Color)
 
 DECLARE_INTRINSIC_TYPE_LAYOUT (FColor)
 
CORE_API void ComputeAndFixedColorAndIntensity (const FLinearColor &InLinearColor, FColor &OutColor, float &OutIntensity)
 
CORE_API void ConvertFLinearColorsToFColorSRGB (const FLinearColor *InLinearColors, FColor *OutColorsSRGB, int64 InCount)
 
struct UE_DEPRECATED (5.7, "FDXTColor565 is deprecated, manipulate DXT blocks directly as required") FDXTColor565
 
struct UE_DEPRECATED (5.7, "FDXTColor16 is deprecated, manipulate DXT blocks directly as required") FDXTColor16
 
struct UE_DEPRECATED (5.7, "FDXT1 is deprecated, manipulate DXT blocks directly as required") FDXT1
 
struct UE_DEPRECATED (5.7, "FDXT5 is deprecated, manipulate DXT blocks directly as required") FDXT5
 

Enumeration Type Documentation

◆ EGammaSpace

enum class EGammaSpace : uint8
strong

Enum for the different kinds of gamma spaces we expect to need to convert from/to.

Enumerator
Linear 

No gamma correction is applied to this space, the incoming colors are assumed to already be in linear space.

Pow22 

A simplified sRGB gamma correction is applied, pow(1/2.2).

sRGB 

Use the standard sRGB conversion.

Invalid 

Function Documentation

◆ ComputeAndFixedColorAndIntensity()

CORE_API void ComputeAndFixedColorAndIntensity ( const FLinearColor InLinearColor,
FColor OutColor,
float OutIntensity 
)
extern

Computes a brightness and a fixed point color from a floating point color.

◆ ConvertFLinearColorsToFColorSRGB()

CORE_API void ConvertFLinearColorsToFColorSRGB ( const FLinearColor InLinearColors,
FColor OutColorsSRGB,
int64  InCount 
)
extern

Convert multiple FLinearColors to sRGB FColor; array version of FLinearColor::ToFColorSRGB.

Convert multiple FLinearColors to sRGB FColor; array version of FLinearColor::ToFColorSRGB.

Parameters
InLinearColorsPointer to one or more FLinearColors to convert.
OutColorsSRGBPointer to one or more FColors that receive the results.
InCountNumber of colors to convert.

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [1/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FColor  )

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [2/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FLinearColor  )

◆ operator*()

UE_FORCEINLINE_HINT FLinearColor operator* ( float  Scalar,
const FLinearColor Color 
)

◆ UE_DEPRECATED() [1/4]

struct UE_DEPRECATED ( 5.  7,
"FDXT1 is  deprecated,
manipulate DXT blocks directly as required"   
)

Structure encompassing single DXT1 block.

Color 0/1

Indices controlling how to blend colors.

◆ UE_DEPRECATED() [2/4]

struct UE_DEPRECATED ( 5.  7,
"FDXT5 is  deprecated,
manipulate DXT blocks directly as required"   
)

Structure encompassing single DXT5 block

Alpha component of DXT5

DXT1 color component.

◆ UE_DEPRECATED() [3/4]

struct UE_DEPRECATED ( 5.  7,
"FDXTColor16 is  deprecated,
manipulate DXT blocks directly as required"   
)

Helper struct for a 16 bit 565 color of a DXT1/3/5 block.

565 Color

16 bit entity representation for easy access.

◆ UE_DEPRECATED() [4/4]

struct UE_DEPRECATED ( 5.  7,
"FDXTColor565 is  deprecated,
manipulate DXT blocks directly as required"   
)

Helper struct for a 16 bit 565 color of a DXT1/3/5 block.

Blue component, 5 bit.

Green component, 6 bit.

Red component, 5 bit