Engine → Scene → scene_manager.h
layer_table
| Type | Class |
| Namespace | conjure::scene |
| Include File Path | engine/include/conjure/scene/scene_manager.h |
| Source File Path | engine/src/scene/scene_manager.cpp |
| API ↗ | Scenes, hierarchy and prefabs, Scene files, prefabs and snapshots |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | layer_table(); |
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~layer_table(); |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | LAYER_COUNT | static constexpr u32 | 32 | |
| private | mNames | std:: | {} |
Functions
Public
find
find[[nodiscard]] std::optional<u8> find(
core::string_id value) const noexcept;The index of the layer with this name, or nullopt.
name
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
names[[nodiscard]] std::span<const core::string_id> names() const noexcept;set_name
set_namevoid set_name(
u8 index,
core::string_id value) noexcept;Names a layer; indices above 31 are ignored (asserted).