OpenGLMeshUploadManager Class Template
Manager that consumes mesh-upload commands and performs OpenGL buffer setup. More...
Declaration
Public Member Typedefs Index
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| using | EngineRoleTag = ManagerRole |
|
Engine role marker used by runtime registries. More... | |
Public Constructors Index
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| OpenGLMeshUploadManager (RenderResourceWorld &renderResourceWorld) | |
Public Member Functions Index
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| void | flush (UpdateContext &updateContext) noexcept |
|
Uploads all queued meshes and clears processed queue entries. More... | |
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| bool | submit (const MeshBatchUploadCommand< THandle > &command) noexcept |
|
Queues mesh handles from a batch upload command. More... | |
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| void | init (helios::engine::runtime::messaging::command::CommandHandlerRegistry &commandHandlerRegistry) noexcept |
|
Registers mesh upload command handlers in the command registry. More... | |
Private Member Functions Index
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| bool | upload (MeshEntity mesh) noexcept |
|
Uploads one mesh to GPU buffers and configures vertex attributes. More... | |
Private Member Attributes Index
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| RenderResourceWorld & | renderResourceWorld_ |
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| std::vector< MeshHandle > | meshHandles_ |
Private Static Attributes Index
template <typename THandle, typename TCommandBuffer = NullCommandBuffer> | |
| static const Logger & | logger_ = LogManager::loggerForScope(HELIOS_LOG_SCOPE) |
Description
Manager that consumes mesh-upload commands and performs OpenGL buffer setup.
- Template Parameters
-
THandle Mesh handle type.
TCommandBuffer Command buffer type for optional follow-up commands.
Definition at line 69 of file OpenGLMeshUploadManager.ixx.
Public Member Typedefs
EngineRoleTag
|
Engine role marker used by runtime registries.
Definition at line 168 of file OpenGLMeshUploadManager.ixx.
Public Constructors
OpenGLMeshUploadManager()
| inline explicit |
Definition at line 160 of file OpenGLMeshUploadManager.ixx.
Public Member Functions
flush()
| inline noexcept |
Uploads all queued meshes and clears processed queue entries.
- Parameters
-
updateContext Frame-local update context.
Definition at line 176 of file OpenGLMeshUploadManager.ixx.
init()
| inline noexcept |
Registers mesh upload command handlers in the command registry.
- Parameters
-
commandHandlerRegistry Registry used for command-handler registration.
Definition at line 219 of file OpenGLMeshUploadManager.ixx.
submit()
| inline noexcept |
Queues mesh handles from a batch upload command.
- Parameters
-
command Batch command containing mesh handles to upload.
- Returns
true when the command was accepted.
Definition at line 207 of file OpenGLMeshUploadManager.ixx.
Private Member Functions
upload()
| inline noexcept |
Uploads one mesh to GPU buffers and configures vertex attributes.
- Parameters
-
mesh Mesh entity containing upload request and mesh data.
- Returns
true if upload succeeded, otherwise false.
Definition at line 85 of file OpenGLMeshUploadManager.ixx.
Private Member Attributes
meshHandles_
|
Definition at line 73 of file OpenGLMeshUploadManager.ixx.
renderResourceWorld_
|
Definition at line 71 of file OpenGLMeshUploadManager.ixx.
Private Static Attributes
logger_
| static |
Definition at line 76 of file OpenGLMeshUploadManager.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.