|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
#include <UISystem.hpp>
Public Member Functions | |
| UISystem (Registry ®, VulkanRenderer &rend) | |
| void | setEditorActive (bool active) |
| void | setPlaying (bool playing) |
| void | update (float dt) override |
| Pure virtual update function to implement system behaviors. | |
| void | draw () |
| Renders the UI overlay. | |
| Public Member Functions inherited from System | |
| virtual | ~System ()=default |
| Virtual destructor. | |
| void | addEntity (Entity e) |
| Adds an entity to the system tracking list. | |
| void | removeEntity (Entity e) |
| Removes an entity from system tracking. | |
Private Member Functions | |
| glm::vec4 | getRect (Entity entity, const glm::vec2 &viewportSize) |
| void | drawWidget (Entity entity, const glm::vec2 &viewportPos, const glm::vec2 &viewportSize, ImDrawList *drawList) |
Private Attributes | |
| Registry & | registry |
| VulkanRenderer & | renderer |
| bool | editorActive = false |
| bool | isPlaying = false |
Additional Inherited Members | |
| Protected Attributes inherited from System | |
| std::vector< Entity > | entities |
| List of entities tracked by this system. | |
|
inline |
| void Engine::UISystem::draw | ( | ) |
Renders the UI overlay.
|
private |
|
private |
|
inline |
|
inline |
|
inlineoverridevirtual |
Pure virtual update function to implement system behaviors.
| dt | Delta time in seconds. |
Implements System.
|
private |
|
private |
|
private |
|
private |