|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Go to the source code of this file.
Classes | |
| struct | Engine::EntityArchetype |
| Describes a pre-defined entity template that appears in the "Create" and "Create Child" menus in the hierarchy panel. More... | |
| class | Engine::EntityArchetypeRegistry |
| Singleton that holds all registered entity archetypes in insertion order. More... | |
Namespaces | |
| namespace | Engine |
Macros | |
| #define | REGISTER_ENTITY_ARCHETYPE_IMPL(MenuPath, TypeString, IsPrimitive, SepBefore, Counter) |
| Register an entity archetype that appears in hierarchy creation menus. | |
| #define | REGISTER_ENTITY_ARCHETYPE_CONCAT(MenuPath, TypeString, IsPrimitive, SepBefore, Counter) |
| #define | REGISTER_ENTITY_ARCHETYPE(MenuPath, TypeString, IsPrimitive) |
| #define | REGISTER_ENTITY_ARCHETYPE_SEP(MenuPath, TypeString, IsPrimitive) |
Functions | |
| ENGINE_API void | Engine::registerBuiltinEntityArchetypes () |
| #define REGISTER_ENTITY_ARCHETYPE | ( | MenuPath, | |
| TypeString, | |||
| IsPrimitive ) |
Register a normal archetype (no separator).
| #define REGISTER_ENTITY_ARCHETYPE_CONCAT | ( | MenuPath, | |
| TypeString, | |||
| IsPrimitive, | |||
| SepBefore, | |||
| Counter ) |
| #define REGISTER_ENTITY_ARCHETYPE_IMPL | ( | MenuPath, | |
| TypeString, | |||
| IsPrimitive, | |||
| SepBefore, | |||
| Counter ) |
Register an entity archetype that appears in hierarchy creation menus.
| MenuPath | Menu path, e.g. "3D Objects/Cube" or "UI/Canvas". |
| TypeString | String passed to Scene::createEntityOfType or createPrimitiveEntity. |
| IsPrimitive | True for geometry primitives (Cube/Triangle/Quad), false otherwise. |
Example: REGISTER_ENTITY_ARCHETYPE("3D Objects/Cube", "Cube", true); REGISTER_ENTITY_ARCHETYPE("Rendering & Lights/Camera", "Camera", false);
| #define REGISTER_ENTITY_ARCHETYPE_SEP | ( | MenuPath, | |
| TypeString, | |||
| IsPrimitive ) |
Register an archetype with a separator line drawn before it in the menu.