summaryrefslogtreecommitdiff
path: root/Resources/Scripts/Editor/AssetBrowser.lua
blob: 3d033027bd4f65c1a5347f05c80485ee06ba9067 (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
local Debug = GameLab.Debug
local AssetBrowser = GameLab.Editor.GUI.EditorWindow.Extend("GameLab.Editor.AssetBrowser")
local GL = GameLab.Engine.GL

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.Begin(GL.EPrimitiveType.Triangles)
	GL.Vertex({0,0,-1})
	GL.Vertex({0,1,-1})
	GL.Vertex({1,0,-1})
	GL.End()
end

AssetBrowser.OnFocus = function(self)

end

return AssetBrowser