summaryrefslogtreecommitdiff
path: root/Resources/Scripts/EditorApplication.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Resources/Scripts/EditorApplication.lua')
-rw-r--r--Resources/Scripts/EditorApplication.lua71
1 files changed, 0 insertions, 71 deletions
diff --git a/Resources/Scripts/EditorApplication.lua b/Resources/Scripts/EditorApplication.lua
deleted file mode 100644
index d9f8b1f..0000000
--- a/Resources/Scripts/EditorApplication.lua
+++ /dev/null
@@ -1,71 +0,0 @@
-local json = require "LiteJson.json"
-local inspect = require "inspect"
-local AssetBrowser = require "./Scripts/Editor/AssetBrowser"
-local EditorWindowManager = require "./Scripts/EditorGUI/EditorWindowManager"
-
-local Rendering = GameLab.Engine.Rendering
-local Debug = GameLab.Debug
-local GUI = GameLab.Editor.GUI
-local GL = GameLab.Engine.GL
-
-local app = GameLab.Editor.EditorApplication.New()
-
-if app == nil then
- Debug.LogError("app is nil")
-end
-
-local mainWindow = GUI.ContainerWindow.New({400, 400, 800, 500}, GUI.EShowMode.MainWindow, {100, 100}, {700, 700})
-mainWindow:SetTitle("GameLab")
-mainWindow:SetIcon("./Data/Icon/GameLab.ico")
-
-app:SetMainWindow(mainWindow)
-
-local guiWindow = GUI.GUIWindow.New()
-guiWindow:SetContainerWindow(mainWindow)
-guiWindow:SetPosition({0,0, 500, 400})
-
-collectgarbage()
-
-Debug.Log(GameLab.Path.GetRootDirectory())
-
-Debug.Log(inspect{foo=1,2,3,4})
-
-local wnd = AssetBrowser.New()
-Debug.Log(inspect(mainWindow._type))
-guiWindow:SetInstance(wnd)
-
-local v = GameLab.Engine.Math.Vector4.New(1,2,3,4)
-Debug.Log(inspect(v))
-
-Debug.Log(EditorWindowManager.name)
-
-local c = Rendering.Color.New(1,1,1,1)
-Debug.Log(inspect(c))
-
-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.ReadFilesAsync(files, function()
- Debug.Log("finished")
-end)
-
-while true do
-
- app:OnStep()
- app:PullMessage()
-
-end \ No newline at end of file