|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Factory class for creating SceneNodes with proper parent-child relationships. This ensures that nodes are always created with a valid parent. More...
#include <SceneGraph.h>
Static Public Member Functions | |
| static std::shared_ptr< SceneNode > | createNode (const std::shared_ptr< SceneNode > &parent, const bool disableCaching=false) |
| Creates a new SceneNode with the specified parent. | |
| static std::vector< std::shared_ptr< SceneNode > > | createNodes (const std::shared_ptr< SceneNode > &parent, size_t count, bool disableCaching=false) |
| Creates multiple nodes under the same parent. | |
| static std::shared_ptr< RootNode > | createRoot (bool disableCaching=false) |
| Creates a new root node for a scene graph. This is the only way to create a parentless node, and should only be used by SceneGraph. | |
Factory class for creating SceneNodes with proper parent-child relationships. This ensures that nodes are always created with a valid parent.
Definition at line 310 of file SceneGraph.h.
|
static |
Creates a new SceneNode with the specified parent.
| parent | The parent node that will own this new node. |
| disableCaching | If true, the world matrix will be recalculated every time it is requested. |
Definition at line 252 of file SceneGraph.cpp.
References Ecs::RegistryManager::get().
Referenced by EngineCore::SceneGraph::createNode().
|
static |
Creates multiple nodes under the same parent.
| parent | The parent node that will own these new nodes. |
| count | Number of nodes to create. |
| disableCaching | If true, the world matrices will be recalculated every time they are requested. |
Definition at line 264 of file SceneGraph.cpp.
References Ecs::RegistryManager::get().
|
inlinestatic |
Creates a new root node for a scene graph. This is the only way to create a parentless node, and should only be used by SceneGraph.
| disableCaching | If true, the world matrix will be recalculated every time it is requested. |
Definition at line 344 of file SceneGraph.h.
References Ecs::RegistryManager::get().