guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
guillaume::systems::RenderHandle Struct Reference

What a render system remembers about the engine object it created for one entity. More...

#include <headers/guillaume/systems/render_handle_map.hpp>

Public Attributes

size_t objectId { 0 }
 Identifier given by the engine.
std::shared_ptr< utility::graphic::Renderable > renderable
 Renderable uploaded last for this object.
bool used { true }
 Whether the entity was drawn this frame.

Detailed Description

What a render system remembers about the engine object it created for one entity.

It pairs the object id returned by utility::Engine::createObject with the renderable that was uploaded last, because utility::Engine::updateObject and utility::Engine::removeObject need both. A render system sets used each frame it draws the entity.

See also
RenderHandleMap

Definition at line 46 of file render_handle_map.hpp.

Member Data Documentation

◆ objectId

size_t guillaume::systems::RenderHandle::objectId { 0 }

Identifier given by the engine.

Definition at line 47 of file render_handle_map.hpp.

◆ renderable

std::shared_ptr<utility::graphic::Renderable> guillaume::systems::RenderHandle::renderable

Renderable uploaded last for this object.

Definition at line 49 of file render_handle_map.hpp.

◆ used

bool guillaume::systems::RenderHandle::used { true }

Whether the entity was drawn this frame.

Definition at line 50 of file render_handle_map.hpp.


The documentation for this struct was generated from the following file: