Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
Color.h File Reference
+ Include dependency graph for Color.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FLinearColor
 
struct  FColor
 
struct  TIsPODType< FColor >
 
struct  TIsPODType< FLinearColor >
 
struct  FDXTColor565
 
struct  FDXTColor16
 
struct  FDXT1
 
struct  FDXT5
 
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)
 
FORCEINLINE FLinearColor operator* (float Scalar, const FLinearColor &Color)
 
 DECLARE_INTRINSIC_TYPE_LAYOUT (FColor)
 
void ComputeAndFixedColorAndIntensity (const FLinearColor &InLinearColor, FColor &OutColor, float &OutIntensity)
 
void ConvertFLinearColorsToFColorSRGB (const FLinearColor *InLinearColors, FColor *OutColorsSRGB, int64 InCount)
 

Variables

static const float OneOver255 = 1.0f / 255.0f
 

Enumeration Type Documentation

◆ EGammaSpace

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 

Definition at line 31 of file Color.h.

Function Documentation

◆ ComputeAndFixedColorAndIntensity()

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

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

◆ ConvertFLinearColorsToFColorSRGB()

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

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

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [1/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FColor )

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [2/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FLinearColor )

◆ operator*()

Definition at line 534 of file Color.h.

+ Here is the call graph for this function:

Variable Documentation

◆ OneOver255

const float OneOver255 = 1.0f / 255.0f
static

Definition at line 861 of file Color.h.