diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_shader.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_shader.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/lua/modules/graphics/je_lua_shader.cpp b/src/lua/modules/graphics/je_lua_shader.cpp index 9913bc3..cab31cf 100644 --- a/src/lua/modules/graphics/je_lua_shader.cpp +++ b/src/lua/modules/graphics/je_lua_shader.cpp @@ -111,23 +111,22 @@ namespace JinEngine return 0; } - LUA_IMPLEMENT const luaL_Reg f[] = { - { "__gc", l_gc }, - { "sendNumber", l_sendNumber }, - { "sendTexture", l_sendTexture }, - { "sendCanvas", l_sendCanvas }, - { "sendVec2", l_sendVec2 }, - { "sendVec3", l_sendVec3 }, - { "sendVec4", l_sendVec4 }, - { "sendColor", l_sendColor }, - { 0, 0 } - }; - /** * JSL program */ LUA_EXPORT int luaopen_JSL(lua_State* L) { + luaL_Reg f[] = { + { "__gc", l_gc }, + { "sendNumber", l_sendNumber }, + { "sendTexture", l_sendTexture }, + { "sendCanvas", l_sendCanvas }, + { "sendVec2", l_sendVec2 }, + { "sendVec3", l_sendVec3 }, + { "sendVec4", l_sendVec4 }, + { "sendColor", l_sendColor }, + { 0, 0 } + }; luax_newtype(L, JIN_GRAPHICS_SHADER, f); return 0; } |