diff options
author | chai <chaifix@163.com> | 2018-11-15 19:29:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-15 19:29:27 +0800 |
commit | 7e51ff3bfae0becc260452a427a1fc1232a4b348 (patch) | |
tree | e2c4cddcd5ed719a611be4c92edf1991a63203c5 /src/lua/modules/graphics/je_lua_texture.cpp | |
parent | a6f2d5fff89b7322009c46a9272668ca4c32ce64 (diff) |
*修改代码结构
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_texture.cpp | 4 |
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 08a98eb..79ddc63 100644 --- a/src/lua/modules/graphics/je_lua_texture.cpp +++ b/src/lua/modules/graphics/je_lua_texture.cpp @@ -2,6 +2,7 @@ #include "lua/common/je_lua_common.h" #include "libjin/jin.h" +#include "je_lua_texture.h" using namespace JinEngine::Graphics; @@ -49,7 +50,7 @@ namespace JinEngine return 0; } - LUA_EXPORT int luaopen_Texture(lua_State* L) + LUA_EXPORT void luaopen_Texture(lua_State* L) { luaL_Reg f[] = { { "__gc", l_gc }, @@ -59,7 +60,6 @@ namespace JinEngine { 0, 0 } }; luax_newtype(L, Jin_Lua_Texture, f); - return 0; } }// namespace Lua |