From 7ecf913256fb396e3027aac3318d996a716a52ef Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Oct 2021 23:29:21 +0800 Subject: + job system --- Resources/Scripts/Editor/AssetBrowser.lua | 8 +++++--- Resources/Scripts/EditorApplication.lua | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) (limited to 'Resources/Scripts') diff --git a/Resources/Scripts/Editor/AssetBrowser.lua b/Resources/Scripts/Editor/AssetBrowser.lua index 3d03302..e6e4a4a 100644 --- a/Resources/Scripts/Editor/AssetBrowser.lua +++ b/Resources/Scripts/Editor/AssetBrowser.lua @@ -1,10 +1,11 @@ local Debug = GameLab.Debug local AssetBrowser = GameLab.Editor.GUI.EditorWindow.Extend("GameLab.Editor.AssetBrowser") local GL = GameLab.Engine.GL +local Matrix44 = GameLab.Engine.Math.Matrix44 +local inspect = require("inspect") AssetBrowser.Ctor = function(self) self.base.Ctor(self, "AssetBrowser") - end AssetBrowser.OnGUI = function(self) @@ -12,10 +13,11 @@ AssetBrowser.OnGUI = function(self) GL.ClearColor({0,0,0,1}) GL.Clear(GL.EBufferType.ColorBuffer) GL.Color({1,1,0,1}) + GL.LoadPixelMatrix(-250, 250, -300, 300) GL.Begin(GL.EPrimitiveType.Triangles) GL.Vertex({0,0,-1}) - GL.Vertex({0,1,-1}) - GL.Vertex({1,0,-1}) + GL.Vertex({0,300,-1}) + GL.Vertex({250,0,-1}) GL.End() end diff --git a/Resources/Scripts/EditorApplication.lua b/Resources/Scripts/EditorApplication.lua index e91725a..747e443 100644 --- a/Resources/Scripts/EditorApplication.lua +++ b/Resources/Scripts/EditorApplication.lua @@ -47,8 +47,25 @@ Debug.Log(inspect(GL.EBufferType)) GL.ClearColor({1,1,1,1}) GL.Clear(GL.EBufferType.ColorBuffer) +local files = { +"README.txt", +"README.txt", +"README.txt", +"README.txt", +"README.txt", +"README.txt", +"README.txt", +"README.txt", +"README.txt", +} + +GameLab.IO.ReadFiles(files, function() + Debug.Log("finished") +end) + while true do + app:OnStep() app:PullMessage() end \ No newline at end of file -- cgit v1.1-26-g67d0