Namespace P64::DrawLayer¶
Classes¶
Functions¶
-
void P64::DrawLayer::use(uint32_t idx)¶
switches to a layer by its index across all lists
-
uint8_t P64::DrawLayer::resolve3D(uint32_t ref)¶
Returns the index within the list of the referenced layer, without switching to it.
References that don’t exist fall back to the first layer of the list.
-
uint8_t P64::DrawLayer::resolvePtx(uint32_t ref)¶
-
uint8_t P64::DrawLayer::resolve2D(uint32_t ref)¶
-
uint8_t P64::DrawLayer::use3D(uint32_t ref = 0)¶
Switches to a layer of the given list.
References that don’t exist fall back to the first layer of the list.
- Returns:
index within the list, can be stored and passed in again to skip searching for a name hash
-
uint8_t P64::DrawLayer::usePtx(uint32_t ref = 0)¶
-
uint8_t P64::DrawLayer::use2D(uint32_t ref = 0)¶
-
inline void P64::DrawLayer::useDefault()¶
-
void P64::DrawLayer::draw(uint32_t layerIdx)¶
applies layer modes and runs commands recorded since last run.
Layers can be recorded and drawn multiple times per frame (e.g. multiple cameras).
- Parameters:
layerIdx –
-
void P64::DrawLayer::draw3D()¶
-
void P64::DrawLayer::drawPtx()¶
-
void P64::DrawLayer::draw2D()¶
-
void P64::DrawLayer::nextFrame()¶
-
void P64::DrawLayer::reset()¶
Variables¶
-
constexpr uint32_t P64::DrawLayer::MAX_INDEX_REF = 64¶
Layers are referenced either by index (0 to MAX_INDEX_REF), or by the hash of their name (everything above that number).