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) Debug.Log("AssetBrowser.OnGUI()") 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,300,-1}) GL.Vertex({250,0,-1}) GL.End() end AssetBrowser.OnFocus = function(self) end return AssetBrowser