| 45 | } |
| 46 | |
| 47 | bool 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 | |
| 60 | bool ImageReference::BindIcon(FixedString const& iconName) |
| 61 | { |
no test coverage detected