summaryrefslogtreecommitdiff
path: root/Data/Scripts/Editor/AssetBrowser.lua
blob: e6e4a4a287b117f1a1152e706b0edd7501510f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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