struct

FColor

Module
Core
Header
#include "Core/FColor.h"
Namespace
Mowo

Properties

TypeNameDescription
uint8_tBStored BGRA to match VK_FORMAT_B8G8R8A8_UNORM, the most common swap- chain format. Constructors still take arguments in RGBA order. Default 0, G = 0, R = 0, A = 255.
static const FColorWhite
static const FColorBlack
static const FColorRed
static const FColorGreen
static const FColorBlue
static const FColorYellow
static const FColorTransparent

Constructors

SignatureNameDescription
constexpr FColor() = defaultFColor
constexpr FColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) : B(b), G(g),…FColor

Public functions

ReturnsNameDescription
uint32_tToPackedBGRAWhat GPU vertex streams want.
uint32_tToPackedRGBAWhat IM_COL32 wants.
FLinearColorToLinearApplies the sRGB → linear curve.
FLinearColorToLinearRawTreats the bytes as already linear — plain divide by 255.
FColorFromLinear
FColorFromLinearRaw

Function details

FColor

C++
constexpr FColor() = default

FColor

C++
constexpr FColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) : B(b), G(g), R(r), A(a)

ToPackedBGRA

C++
constexpr uint32_t ToPackedBGRA() const noexcept

What GPU vertex streams want.

ToPackedRGBA

C++
constexpr uint32_t ToPackedRGBA() const noexcept

What IM_COL32 wants.

ToLinear

C++
FLinearColor ToLinear() const noexcept

Applies the sRGB → linear curve.

ToLinearRaw

C++
FLinearColor ToLinearRaw() const noexcept

Treats the bytes as already linear — plain divide by 255.

FromLinear

C++
static FColor FromLinear(const FLinearColor& linear)

FromLinearRaw

C++
static FColor FromLinearRaw(const FLinearColor& linear)
Generated from Core/FColor.h via core.json · Nov 5, 2026Version 1.0.0