MCPcopy Create free account
hub / github.com/Norbyte/bg3se / AddImage

Method AddImage

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:539–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537
538
539lua::ImguiHandle TreeParent::AddImage(FixedString iconOrTexture,
540 std::optional<glm::vec2> size, std::optional<glm::vec2> uv0, std::optional<glm::vec2> uv1)
541{
542 auto img = AddChild<Image>();
543 img->ImageData.Bind(iconOrTexture);
544 if (size) img->ImageData.Size = *size;
545 if (uv0) img->ImageData.UV0 = *uv0;
546 if (uv1) img->ImageData.UV1 = *uv1;
547
548 return img;
549}
550
551
552lua::ImguiHandle TreeParent::AddIcon(FixedString iconName, std::optional<glm::vec2> size)

Callers

nothing calls this directly

Calls 1

BindMethod · 0.80

Tested by

no test coverage detected