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

Method BindTexture

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool ImageReference::BindTexture(FixedString const& textureUuid)
48{
49 TextureResource = textureUuid;
50 auto result = gExtender->IMGUI().RegisterTexture(textureUuid);
51 if (result) {
52 TextureHandle = result->OpaqueHandle;
53 Size = glm::vec2((float)result->Width, (float)result->Height);
54 return true;
55 } else {
56 return false;
57 }
58}
59
60bool ImageReference::BindIcon(FixedString const& iconName)
61{

Callers 1

PrepareRenderMethod · 0.80

Calls 1

RegisterTextureMethod · 0.80

Tested by

no test coverage detected