GE Lua Documentation

Press F to search!

ImTextureHandlerIsCached

Definition


-- @/lua/common/extensions/ui/imgui_custom_luaintf.lua:205

  function M.ImTextureHandlerIsCached(path)
    return imgui.ImTextureHandler.isCached(path)
  end

Callers

@/lua/ge/extensions/editor/dynamicDecals/textures.lua

          if im.ImTextureHandlerIsCached(filePath) then
            if im.ImageButton(string.format("##textures_imageButton_%s", filePath), editor.getTempTextureObj(filePath).texId, im.ImVec2(thumbnailSize, thumbnailSize), im.ImVec2Zero, im.ImVec2One, (sel and tableContains(sel, filePath)) and selectedTextureCol.Value or nil) then
      else
        if im.ImTextureHandlerIsCached(filePath) then
          if im.ImageButton(string.format("##textures_imageButton_%s", filePath), editor.getTempTextureObj(filePath).texId, im.ImVec2(thumbnailSize, thumbnailSize), im.ImVec2Zero, im.ImVec2One, (sel and tableContains(sel, filePath)) and selectedTextureCol.Value or nil) then