Files
jaildoctors-dilemma/source/core/rendering/render_info.hpp
T
JailDesigner 065f66d40e nova clase renderInfo
afegit control de offset a les notificacions
2026-03-28 12:49:38 +01:00

30 lines
632 B
C++

#pragma once
class RenderInfo {
public:
// Singleton
static void init();
static void destroy();
static auto get() -> RenderInfo*;
// Métodos principales
void render() const;
void toggle();
// Consultas
[[nodiscard]] auto isActive() const -> bool { return active_; }
// Altura fija del overlay (TEXT_SIZE(6) + PADDING_V(3) * 2)
static constexpr int HEIGHT = 12;
private:
// Singleton
static RenderInfo* render_info;
// Constructor y destructor privados [SINGLETON]
RenderInfo();
~RenderInfo() = default;
bool active_{false}; // Estado del overlay
};