struct
FColor
- Module
- Core
- Header
#include "Core/FColor.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
uint8_t | B | Stored 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 FColor | White | |
static const FColor | Black | |
static const FColor | Red | |
static const FColor | Green | |
static const FColor | Blue | |
static const FColor | Yellow | |
static const FColor | Transparent |
Constructors
| Signature | Name | Description |
|---|---|---|
constexpr FColor() = default | FColor | |
constexpr FColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) : B(b), G(g),… | FColor |
Public functions
| Returns | Name | Description |
|---|---|---|
uint32_t | ToPackedBGRA | What GPU vertex streams want. |
uint32_t | ToPackedRGBA | What IM_COL32 wants. |
FLinearColor | ToLinear | Applies the sRGB → linear curve. |
FLinearColor | ToLinearRaw | Treats the bytes as already linear — plain divide by 255. |
FColor | FromLinear | |
FColor | FromLinearRaw |
Function details
FColor
C++
constexpr FColor() = defaultFColor
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 noexceptWhat GPU vertex streams want.
ToPackedRGBA
C++
constexpr uint32_t ToPackedRGBA() const noexceptWhat IM_COL32 wants.
ToLinear
C++
FLinearColor ToLinear() const noexceptApplies the sRGB → linear curve.
ToLinearRaw
C++
FLinearColor ToLinearRaw() const noexceptTreats 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