diff options
author | chai <chaifix@163.com> | 2021-10-27 01:06:48 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-27 01:06:48 +0800 |
commit | 0035e0d47bbce8311d3a4e559e74b8cdc5209d47 (patch) | |
tree | 51429abc6f8e50af1fc6ecfac0301a5667f6564b /Data/Scripts/EditorApplication.lua | |
parent | 12f3ac102d3aea08af540dd7f2cf0e08e939a70d (diff) |
*load image
Diffstat (limited to 'Data/Scripts/EditorApplication.lua')
-rw-r--r-- | Data/Scripts/EditorApplication.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Data/Scripts/EditorApplication.lua b/Data/Scripts/EditorApplication.lua index 6b42175..36c701a 100644 --- a/Data/Scripts/EditorApplication.lua +++ b/Data/Scripts/EditorApplication.lua @@ -64,13 +64,13 @@ GameLab.IO.ReadFilesAsync(files, function() Debug.Log("finished") end) -local imgData = Rendering.LoadImage("./Resources/Images/brickwall.jpg") +local imgData = Resource.LoadImageData("./Resources/Images/brickwall.jpg") Debug.Log(tostring(imgData:GetWidth())) Debug.Log(tostring(imgData:GetHeight())) -local tex = Rendering.Texture.New(imgData, false) +local tex = Resource.LoadTexture("./Resources/Images/brickwall.jpg") -local requets = Resource.LoadImageDataAsync("./Resources/Images/brickwall.jpg") +local request = Resource.LoadImageDataAsync("./Resources/Images/brickwall.jpg") while true do |