| 4665 | } |
| 4666 | |
| 4667 | void AS_ImDrawList_AddImage(const TextureAssetRef& user_texture_ref, const vec2& a, const vec2& b, const vec2& uv_a, const vec2& uv_b, uint32_t tint_color) { |
| 4668 | ImDrawList* draw_list; |
| 4669 | |
| 4670 | if (user_texture_ref.valid() && ImGui_TryGetWindowDrawList(&draw_list)) { |
| 4671 | Textures::Instance()->EnsureInVRAM(user_texture_ref); |
| 4672 | draw_list->AddImage( |
| 4673 | reinterpret_cast<ImTextureID>(Textures::Instance()->returnTexture(user_texture_ref)), |
| 4674 | ImVec2(a[0], a[1]), |
| 4675 | ImVec2(b[0], b[1]), |
| 4676 | ImVec2(uv_a[0], uv_a[1]), |
| 4677 | ImVec2(uv_b[0], uv_b[1]), |
| 4678 | tint_color); |
| 4679 | } |
| 4680 | } |
| 4681 | |
| 4682 | void AS_ImDrawList_AddImageQuad(const TextureAssetRef& user_texture_ref, const vec2& a, const vec2& b, const vec2& c, const vec2& d, const vec2& uv_a, const vec2& uv_b, const vec2& uv_c, const vec2& uv_d, uint32_t tint_color) { |
| 4683 | ImDrawList* draw_list; |
nothing calls this directly
no test coverage detected