GE Lua Documentation

Press F to search!

ImTextureHandler

Definition


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

  function M.ImTextureHandler(path)
    local res = imgui.ImTextureHandler()
    res:setID(path)
    return res
  end

Callers

@/lua/ge/extensions/editor/api/gui.lua
  res.path = path
  res.tex = imgui.ImTextureHandler(path)
  if not res.tex then return nil end
@/lua/ge/extensions/editor/resourceChecker/resourceUtil.lua
            if d and d ~= "" and FS:fileExists(d) then
              local tex = im.ImTextureHandler(d)
              local size = tex:getSize()
@/lua/common/extensions/ui/imguiUtils.lua
  res.path = path
  res.tex = imgui.ImTextureHandler(path)
  res.texId = res.tex:getID()
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
  function M.ImTextureHandler(path)
    local res = imgui.ImTextureHandler()
    res:setID(path)