aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r--src/ui/ui.h16
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;