diff options
| author | hachem <im@hachem.wtf> | 2026-08-30 17:59:14 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-30 17:59:14 +0200 |
| commit | f099a82eb2b2a6bb64cd51d98ab027f4ce45078c (patch) | |
| tree | ac83cedd80afb500b63ff8e517f6e24939742f9c /src/ui/ui.h | |
| parent | 5074ae48a95f96ec3370e464bb3c7242a3455411 (diff) | |
feat: little pepe
Diffstat (limited to 'src/ui/ui.h')
| -rw-r--r-- | src/ui/ui.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 8cc573e..edd343f 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -1,6 +1,8 @@ #pragma once #include "core/result.h" +#include "ui/animated_image.h" +#include "ui/image_renderer.h" #include "ui/source_view.h" #include <cstdint> @@ -79,6 +81,20 @@ namespace Hsdbg SourceView m_source_view; PanelVisibility m_visible; + // the crying-pepe that lives in the toolbar; loaded on the first frame + // once there is a gl context to upload its textures to, and drawn with a + // dedicated shader after imgui rather than through ImGui::Image + AnimatedImage m_mascot; + ImageRenderer m_image_renderer; + bool m_mascot_loaded = false; + bool m_image_renderer_ready = false; + bool m_mascot_pending = false; + unsigned int m_mascot_texture = 0; + float m_mascot_x0 = 0.0f; + float m_mascot_y0 = 0.0f; + float m_mascot_x1 = 0.0f; + float m_mascot_y1 = 0.0f; + std::vector<std::string> m_console_lines; std::string m_console_input; std::string m_target_input; |
