|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Configures Mesh widgets and registers them in the scene's entity registry. More...
#include <headers/guillaume/entities/mesh.hpp>


Public Member Functions | |
| Builder (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Construct a builder holding the defaults of reset(). | |
| std::shared_ptr< Mesh > | buildEntity (void) override |
| Build a mesh from the current configuration, without registering it or giving it a parent. | |
| void | reset (void) override |
| Restore the defaults: empty model path and empty texture path. | |
| Builder & | withMeshPath (const std::string &meshPath) |
| Choose the model to draw. | |
| Builder & | withTexturePath (const std::string &texturePath) |
| Choose the texture applied to the model. | |
| std::shared_ptr< Mesh > | makeMesh (std::shared_ptr< Entity > parent, const std::string &meshPath, const std::string &texturePath="") |
| Build a mesh, register it under parent and reset the builder. | |
| Public Member Functions inherited from guillaume::entities::EntityBuilderBase< Mesh > | |
| EntityBuilderBase (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Construct a builder bound to two registries. | |
| ~EntityBuilderBase (void) override=default | |
| Default destructor. | |
| std::shared_ptr< Mesh > | registerEntity (std::shared_ptr< ecs::Entity > parent) |
| Build the widget, attach it to its parent, hand it to the entity registry, then reset the builder to its defaults. | |
| Public Member Functions inherited from guillaume::ecs::EntityBuilder | |
| EntityBuilder (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Create a builder working on a pair of registries, normally those of one scene. | |
| virtual | ~EntityBuilder (void)=default |
| Virtual destructor. | |
Additional Inherited Members | |
| Protected Member Functions inherited from guillaume::ecs::EntityBuilder | |
| ComponentRegistry & | getComponentRegistry (void) |
| Get the registry in which the builder creates components. | |
| EntityRegistry & | getEntityRegistry (void) |
| Get the registry in which the builder registers the entities it creates. | |
Configures Mesh widgets and registers them in the scene's entity registry.
| guillaume::entities::Mesh::Builder::Builder | ( | ecs::ComponentRegistry & | componentRegistry, |
| ecs::EntityRegistry & | entityRegistry ) |
|
overridevirtual |
Build a mesh from the current configuration, without registering it or giving it a parent.
Implements guillaume::entities::EntityBuilderBase< Mesh >.
Definition at line 38 of file mesh.cpp.


| std::shared_ptr< Mesh > guillaume::entities::Mesh::Builder::makeMesh | ( | std::shared_ptr< Entity > | parent, |
| const std::string & | meshPath, | ||
| const std::string & | texturePath = "" ) |
Build a mesh, register it under parent and reset the builder.
| parent | The entity the mesh is attached to, or nullptr for a root entity. |
| meshPath | The path of the model file to draw. |
| texturePath | The path of the texture file applied to the model, or an empty string for the default material. |
Definition at line 66 of file mesh.cpp.


|
overridevirtual |
Restore the defaults: empty model path and empty texture path.
Implements guillaume::ecs::EntityBuilder.
Definition at line 46 of file mesh.cpp.


| Mesh::Builder & guillaume::entities::Mesh::Builder::withMeshPath | ( | const std::string & | meshPath | ) |
Choose the model to draw.
| meshPath | The path of the model file, as the resource provider of the application resolves it. Empty by default. |
Definition at line 52 of file mesh.cpp.


| Mesh::Builder & guillaume::entities::Mesh::Builder::withTexturePath | ( | const std::string & | texturePath | ) |
Choose the texture applied to the model.
| texturePath | The path of the texture file. Empty by default: the model is then drawn with the default material. |
Definition at line 59 of file mesh.cpp.

