aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_texture.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-22 12:23:12 +0800
committerchai <chaifix@163.com>2018-11-22 12:23:12 +0800
commit7a20483f06624e82feb129c9e4c8fa13881a6a9f (patch)
tree82707e7546fe14d1b781a2e15f65f6ef976ac322 /src/lua/modules/graphics/je_lua_texture.cpp
parent7256d216ecf154d6418c1f3b36dd58a2b69b7827 (diff)
*修改lua bind
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_texture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/je_lua_texture.cpp b/src/lua/modules/graphics/je_lua_texture.cpp
index 712c4ac..5402a99 100644
--- a/src/lua/modules/graphics/je_lua_texture.cpp
+++ b/src/lua/modules/graphics/je_lua_texture.cpp
@@ -52,14 +52,14 @@ namespace JinEngine
LUA_EXPORT void luaopen_Texture(lua_State* L)
{
- luaL_Reg f[] = {
+ luaL_Reg methods[] = {
{ "__gc", l_gc },
{ "getWidth", l_getWidth },
{ "getHeight", l_getHeight },
{ "getSize", l_getSize },
{ 0, 0 }
};
- luax_newtype(L, Jin_Lua_Texture, f);
+ luax_newtype(L, Jin_Lua_Texture, methods);
}
}// namespace Lua