refactor: Move custom ImGui functions to ImGuiExt namespace (#1427)

Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
iTrooz
2023-11-16 22:24:06 +01:00
committed by GitHub
parent 77c326d300
commit 39252dfe48
79 changed files with 644 additions and 622 deletions

View File

@@ -284,11 +284,11 @@ namespace hex::plugin::builtin {
void process() override {
const auto &rawData = this->getBufferOnInput(0);
this->m_texture = ImGui::Texture(rawData.data(), rawData.size());
this->m_texture = ImGuiExt::Texture(rawData.data(), rawData.size());
}
private:
ImGui::Texture m_texture;
ImGuiExt::Texture m_texture;
};
class NodeVisualizerImageRGBA : public dp::Node {
@@ -315,11 +315,11 @@ namespace hex::plugin::builtin {
if (requiredBytes > rawData.size())
throwNodeError(hex::format("Image requires at least {} bytes of data, but only {} bytes are available", requiredBytes, rawData.size()));
this->m_texture = ImGui::Texture(rawData.data(), rawData.size(), width, height);
this->m_texture = ImGuiExt::Texture(rawData.data(), rawData.size(), width, height);
}
private:
ImGui::Texture m_texture;
ImGuiExt::Texture m_texture;
};
class NodeVisualizerByteDistribution : public dp::Node {