diff options
author | chai <chaifix@163.com> | 2018-07-23 18:57:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-23 18:57:50 +0800 |
commit | 128b6dd3e3a803e475ec03493ee26e6b20d7e42b (patch) | |
tree | 2dece2011db239c7ebee2786c9978e5636ea4947 /src/lua/graphics/luaopen_graphics.cpp | |
parent | a4c51a4ac6dc263c3ea2cd49afbd3fbad9ccea17 (diff) |
update
Signed-off-by: chai <chaifix@163.com>
Diffstat (limited to 'src/lua/graphics/luaopen_graphics.cpp')
-rw-r--r-- | src/lua/graphics/luaopen_graphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp index 025781e..44b0a2c 100644 --- a/src/lua/graphics/luaopen_graphics.cpp +++ b/src/lua/graphics/luaopen_graphics.cpp @@ -27,7 +27,7 @@ namespace lua */ static int l_init(lua_State* L) { - Window* wnd = Window::get(); + WindowSystem* wnd = WindowSystem::get(); WindowSetting setting; setting.width = luax_getfield_integer(L, 1, "width"); setting.height = luax_getfield_integer(L, 1, "height"); @@ -40,7 +40,7 @@ namespace lua static int l_destroy(lua_State* L) { - Window* wnd = Window::get(); + WindowSystem* wnd = WindowSystem::get(); wnd->quit(); return 0; } @@ -50,7 +50,7 @@ namespace lua */ static int l_getSize(lua_State* L) { - Window* wnd = Window::get(); + WindowSystem* wnd = WindowSystem::get(); luax_pushnumber(L, wnd->getW()); luax_pushnumber(L, wnd->getH()); return 2; @@ -127,7 +127,7 @@ namespace lua */ static int l_present(lua_State* L) { - Window::get()->swapBuffers(); + WindowSystem::get()->swapBuffers(); return 0; } |