diff options
author | chai <chaifix@163.com> | 2021-11-20 20:29:08 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-20 20:29:08 +0800 |
commit | 0944b2f95b9971d62f35b9dcc38d28a27e278249 (patch) | |
tree | 3cd71eff172b394655bf69bf23ec3eb6eb471256 /Runtime/Scripting | |
parent | bb452bba78dc1870d6316b383180472fe3a8a06a (diff) |
* mv gui to editor
Diffstat (limited to 'Runtime/Scripting')
-rw-r--r-- | Runtime/Scripting/GL/GL.bind.cpp | 6 | ||||
-rw-r--r-- | Runtime/Scripting/RuntimeScriptGlobals.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Runtime/Scripting/GL/GL.bind.cpp b/Runtime/Scripting/GL/GL.bind.cpp index caf3877..5260378 100644 --- a/Runtime/Scripting/GL/GL.bind.cpp +++ b/Runtime/Scripting/GL/GL.bind.cpp @@ -180,12 +180,12 @@ int Viewport(lua_State* L) { LUA_BIND_STATE(L); - float left = state.GetValue<float>(1, 0); - float right = state.GetValue<float>(2, 0); + float x = state.GetValue<float>(1, 0); + float y = state.GetValue<float>(2, 0); float width = state.GetValue<float>(3, 0); float height = state.GetValue<float>(4, 0); - glViewport(left, right, width, height); + glViewport(x, y, width, height); return 0; } diff --git a/Runtime/Scripting/RuntimeScriptGlobals.cpp b/Runtime/Scripting/RuntimeScriptGlobals.cpp index bb3139c..76de265 100644 --- a/Runtime/Scripting/RuntimeScriptGlobals.cpp +++ b/Runtime/Scripting/RuntimeScriptGlobals.cpp @@ -7,9 +7,9 @@ namespace Scripting {
globals.setCurrentEvent = "GameLab.Events.Event.SetCurrentEvent";
- globals.guiBeginFrame = "GameLab.Engine.GUI.BeginFrame";
- globals.guiEndFrame = "GameLab.Engine.GUI.EndFrame";
- globals.guiBeginOnGUI = "GameLab.Engine.GUI.BeginOnGUI";
- globals.guiEndOnGUI = "GameLab.Engine.GUI.EndOnGUI";
+ globals.guiBeginFrame = "GameLab.Editor.GUI.BeginFrame";
+ globals.guiEndFrame = "GameLab.Editor.GUI.EndFrame";
+ globals.guiBeginOnGUI = "GameLab.Editor.GUI.BeginOnGUI";
+ globals.guiEndOnGUI = "GameLab.Editor.GUI.EndOnGUI";
}
}
\ No newline at end of file |