diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_texture.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lua/modules/graphics/je_lua_texture.cpp b/src/lua/modules/graphics/je_lua_texture.cpp index 5236438..d7571b6 100644 --- a/src/lua/modules/graphics/je_lua_texture.cpp +++ b/src/lua/modules/graphics/je_lua_texture.cpp @@ -46,17 +46,16 @@ namespace JinEngine proxy->release(); return 0; } - - LUA_IMPLEMENT const luaL_Reg f[] = { - { "__gc", l_gc }, - { "getWidth", l_getWidth }, - { "getHeight", l_getHeight }, - { "getSize", l_getSize }, - { 0, 0 } - }; - + LUA_EXPORT int luaopen_Texture(lua_State* L) { + luaL_Reg f[] = { + { "__gc", l_gc }, + { "getWidth", l_getWidth }, + { "getHeight", l_getHeight }, + { "getSize", l_getSize }, + { 0, 0 } + }; luax_newtype(L, JIN_GRAPHICS_TEXTURE, f); return 0; } |