Skip to content

Engine → Scene → scene_manager.h

layer_table

Syntax

class CONJURE_API layer_table

Constructors

AccessSignatureDescription
publiclayer_table();

Destructors

AccessSignatureDescription
public~layer_table();

Variables

AccessNameTypeDefaultDescription
publicLAYER_COUNTstatic constexpr u3232
privatemNamesstd::array<core::string_id, LAYER_COUNT>{}

Functions

Public

find

[[nodiscard]] std::optional<u8> find(
    core::string_id value) const noexcept;

The index of the layer with this name, or nullopt.

name

[[nodiscard]] core::string_id name(
    u8 index) const noexcept;

The name of a layer (the null id when unnamed or out of range).

names

[[nodiscard]] std::span<const core::string_id> names() const noexcept;

set_name

void set_name(
    u8 index,
    core::string_id value) noexcept;

Names a layer; indices above 31 are ignored (asserted).