diff options
author | chai <chaifix@163.com> | 2021-10-26 19:33:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-26 19:33:40 +0800 |
commit | 051abd04e4527095ef15412939450fbe504daebe (patch) | |
tree | 30a966d104ee866bc135cce58b4a5fa561c8c4e7 /Data/Scripts/EditorApplication.lua | |
parent | b1228baf73f6dc3336e24afbf36087e15730732a (diff) |
+texture & imagedata
Diffstat (limited to 'Data/Scripts/EditorApplication.lua')
-rw-r--r-- | Data/Scripts/EditorApplication.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Data/Scripts/EditorApplication.lua b/Data/Scripts/EditorApplication.lua index d9f8b1f..8b54e41 100644 --- a/Data/Scripts/EditorApplication.lua +++ b/Data/Scripts/EditorApplication.lua @@ -63,6 +63,12 @@ GameLab.IO.ReadFilesAsync(files, function() Debug.Log("finished") end) +local imgData = Rendering.LoadImage("./Resources/Images/brickwall.jpg") +Debug.Log(tostring(imgData:GetWidth())) +Debug.Log(tostring(imgData:GetHeight())) + +local tex = Rendering.Texture.New(imgData, false) + while true do app:OnStep() |