Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · function

Native::

DecodePaint

The weights of one canonical post (FPaintSlots): its used pairs, zero weights dropped.

Overload 1

The weights of one canonical post (FPaintSlots): its used pairs, zero weights dropped.

constexpr FPaintWeights DecodePaint(const FPaintSlots& Paint);
Header
#include "Native/GroundSampling.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainCore"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Pure, constant-evaluable, any thread.

Parameters

NameTypeDefaultMeaning
Paintconst FPaintSlots&——
Note.

Pure, constant-evaluable, any thread.

Overload 2

Decode one post of a tile's paint slot planes (channel ids 16-30) into weights.

inline FPaintWeights DecodePaint(const FPaintPlanes& Planes, size_t Post, int32_t K = kPaintSlots);
Header
#include "Native/GroundSampling.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainCore"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Pure, any thread.

Parameters

NameTypeDefaultMeaning
Planesconst FPaintPlanes&—

The tile's planes; an absent plane reads 0 (PaintSlots.h).

Postsize_t—

Post index within the tile.

Kint32_tkPaintSlots

Slots to read, clamped to 1..kMaxPaintSlots.

Note.

Pure, any thread. A post that is not canonical decodes as read; the world and the loaders keep posts canonical.