More progress

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-10-09 11:47:07 +03:00
parent 2b8bc31fc7
commit 47ffde7996
6 changed files with 124 additions and 27 deletions

26
src/ImGui.cpp Normal file
View File

@@ -0,0 +1,26 @@
#include "ImGui.hpp"
ImGui::ImGui(std::shared_ptr<TextRenderer> text_renderer)
: m_text_renderer(text_renderer)
{
}
void ImGui::begin(
std::pmr::vector<u32> const input_runes, bool ctrl, bool shift)
{
m_input_runes = input_runes;
m_ctrl = ctrl;
m_shift = shift;
}
void ImGui::end() { }
auto ImGui::text_input(std::size_t id, std::pmr::string &str, Rectangle rec,
TextInputOptions options) -> std::bitset<2>
{
bool submitted { false };
bool changed { false };
return std::bitset<2> { static_cast<unsigned long long>(
(submitted ? 1 : 0) | (changed ? 2 : 0)) };
}