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

Function AS_ImGui_Image

Source/Scripting/angelscript/asfuncs.cpp:3852–3862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3850}
3851
3852void AS_ImGui_Image(const TextureAssetRef& user_texture_ref, const vec2& size, const vec2& uv0, const vec2& uv1, const vec4& tint_color, const vec4& border_color) {
3853 if (user_texture_ref.valid()) {
3854 ImVec2 size_temp(size[0], size[1]);
3855 ImVec2 uv0_temp(uv0[0], uv0[1]);
3856 ImVec2 uv1_temp(uv1[0], uv1[1]);
3857 ImVec4 tint_color_temp(tint_color[0], tint_color[1], tint_color[2], tint_color[3]);
3858 ImVec4 border_color_temp(border_color[0], border_color[1], border_color[2], border_color[3]);
3859 Textures::Instance()->EnsureInVRAM(user_texture_ref);
3860 ImGui::Image(reinterpret_cast<ImTextureID>(Textures::Instance()->returnTexture(user_texture_ref)), size_temp, uv0_temp, uv1_temp, tint_color_temp, border_color_temp);
3861 }
3862}
3863
3864bool AS_ImGui_ImageButton(const TextureAssetRef& user_texture_ref, const vec2& size, const vec2& uv0, const vec2& uv1, int frame_padding, const vec4& background_color, const vec4& tint_color) {
3865 if (user_texture_ref.valid()) {

Callers

nothing calls this directly

Calls 4

ImageClass · 0.85
EnsureInVRAMMethod · 0.80
returnTextureMethod · 0.80
validMethod · 0.45

Tested by

no test coverage detected