![]() |
Ark Server API (ASA) - Wiki
|
#include <Color.h>
Collaboration diagram for FColor:Public Member Functions | |
| uint32 & | DWColor (void) |
| const uint32 & | DWColor (void) const |
| FORCEINLINE | FColor () |
| FORCEINLINE | FColor (EForceInit) |
| constexpr FORCEINLINE | FColor (uint8 InR, uint8 InG, uint8 InB, uint8 InA=255) |
| FORCEINLINE | FColor (uint32 InColor) |
| bool | Serialize (FArchive &Ar) |
| bool | Serialize (FStructuredArchive::FSlot Slot) |
| FORCEINLINE bool | operator== (const FColor &C) const |
| FORCEINLINE bool | operator!= (const FColor &C) const |
| FORCEINLINE void | operator+= (const FColor &C) |
| FLinearColor | FromRGBE () const |
| FColor | WithAlpha (uint8 Alpha) const |
| FORCEINLINE FLinearColor | ReinterpretAsLinear () const |
| FORCEINLINE FString | ToHex () const |
| FORCEINLINE FString | ToString () const |
| bool | InitFromString (const FString &InSourceString) |
| FORCEINLINE uint32 | ToPackedARGB () const |
| FORCEINLINE uint32 | ToPackedABGR () const |
| FORCEINLINE uint32 | ToPackedRGBA () const |
| FORCEINLINE uint32 | ToPackedBGRA () const |
Public Attributes | ||
| union { | ||
| struct { | ||
| uint8 A | ||
| uint8 R | ||
| uint8 G | ||
| uint8 B | ||
| } | ||
| uint32 Bits | ||
| }; | ||
Private Member Functions | |
| ARK_API | FColor (const FLinearColor &LinearColor) |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FColor &Color) |
| void | operator<< (FStructuredArchive::FSlot Slot, FColor &Color) |
| FORCEINLINE uint32 | GetTypeHash (const FColor &Color) |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
explicitprivate |
Please use .ToFColor(true) on FLinearColor if you wish to convert from FLinearColor to FColor, with proper sRGB conversion applied.
Note: Do not implement or make public. We don't want people needlessly and implicitly converting between FLinearColor and FColor. It's not a free conversion.
Creates a color value from the given hexadecimal string.
Supported formats are: RGB, RRGGBB, RRGGBBAA, #RGB, #RRGGBB, #RRGGBBAA
| HexString | - The hexadecimal string. |
| FLinearColor FColor::FromRGBE | ( | ) | const |
Initialize this Color based on an FString. The String is expected to contain R=, G=, B=, A=. The FColor will be bogus when InitFromString returns false.
| InSourceString | FString containing the color values. |
Definition at line 782 of file Color.h.
Here is the call graph for this function:Converts temperature in Kelvins of a black body radiator to RGB chromaticity.
Makes a random color based on a seed.
Makes a color red->green with the passed in scalar (e.g. 0 is red, 1 is green)
|
inline |
|
inline |
|
inline |
Conversions to/from GPU UNorm floats, U8, U16 matches convention of FColor FLinearColor::QuantizeRound
Definition at line 661 of file Color.h.
Here is the call graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
| union { ... } FColor |