MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AS_ImDrawList_AddImage

Function AS_ImDrawList_AddImage

Source/Scripting/angelscript/asfuncs.cpp:4667–4680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4665}
4666
4667void 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
4682void 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;

Callers

nothing calls this directly

Calls 6

EnsureInVRAMMethod · 0.80
returnTextureMethod · 0.80
ImVec2Function · 0.50
validMethod · 0.45
AddImageMethod · 0.45

Tested by

no test coverage detected