diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_shader.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_shader.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lua/modules/graphics/je_lua_shader.cpp b/src/lua/modules/graphics/je_lua_shader.cpp index d7733d4..6aa45e2 100644 --- a/src/lua/modules/graphics/je_lua_shader.cpp +++ b/src/lua/modules/graphics/je_lua_shader.cpp @@ -1,6 +1,6 @@ #include "lua/modules/luax.h" #include "lua/modules/types.h" -#include "lua/common/common.h" +#include "lua/common/je_lua_common.h" #include "libjin/jin.h" namespace JinEngine @@ -21,7 +21,7 @@ namespace JinEngine /** * jsl:sendNumber("variable", 0.1) */ - static int l_sendNumber (lua_State* L) + LUA_IMPLEMENT int l_sendNumber (lua_State* L) { ShaderRef ref = checkShader(L); const char* variable = luax_checkstring(L, 2); @@ -30,7 +30,7 @@ namespace JinEngine return 0; } - static int l_sendTexture (lua_State* L) + LUA_IMPLEMENT int l_sendTexture (lua_State* L) { ShaderRef ref = checkShader(L); const char* variable = luax_checkstring(L, 2); @@ -40,7 +40,7 @@ namespace JinEngine return 0; } - static int l_sendCanvas (lua_State* L) + LUA_IMPLEMENT int l_sendCanvas (lua_State* L) { ShaderRef ref = checkShader(L); const char* variable = luax_checkstring(L, 2); @@ -50,7 +50,7 @@ namespace JinEngine return 0; } - static int l_sendVec2 (lua_State* L) + LUA_IMPLEMENT int l_sendVec2 (lua_State* L) { ShaderRef ref = checkShader(L); const char* variable = luax_checkstring(L, 2); @@ -65,7 +65,7 @@ namespace JinEngine return 0; } - static int l_sendVec3 (lua_State* L) + LUA_IMPLEMENT int l_sendVec3 (lua_State* L) { ShaderRef ref = checkShader(L); const char* variable = luax_checkstring(L, 2); @@ -81,7 +81,7 @@ namespace JinEngine return 0; } - static int l_sendVec4 (lua_State* L) + LUA_IMPLEMENT int l_sendVec4 (lua_State* L) { ShaderRef ref = checkShader(L); const char* variable = luax_checkstring(L, 2); @@ -98,19 +98,19 @@ namespace JinEngine return 0; } - static int l_sendColor (lua_State* L) + LUA_IMPLEMENT int l_sendColor (lua_State* L) { return l_sendVec4(L); } - static int l_gc(lua_State* L) + LUA_IMPLEMENT int l_gc(lua_State* L) { Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_SHADER); proxy->release(); return 0; } - static const luaL_Reg f[] = { + LUA_IMPLEMENT const luaL_Reg f[] = { { "__gc", l_gc }, { "sendNumber", l_sendNumber }, { "sendTexture", l_sendTexture }, @@ -125,7 +125,7 @@ namespace JinEngine /** * JSL program */ - int luaopen_JSL(lua_State* L) + LUA_EXPORT int luaopen_JSL(lua_State* L) { luax_newtype(L, JIN_GRAPHICS_SHADER, f); return 0; |