aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_shader.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-26 22:17:03 +0800
committerchai <chaifix@163.com>2018-10-26 22:17:03 +0800
commit6219608238afd56634bdd76e096ee894e90b3a2b (patch)
tree301b046983295eff2ebd8b7fd18773abc746269f /src/lua/modules/graphics/je_lua_shader.cpp
parentb04c097db4bf8c45342bca403ca2c8a6d5783a84 (diff)
*增加SDL2 include
Diffstat (limited to 'src/lua/modules/graphics/je_lua_shader.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_shader.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lua/modules/graphics/je_lua_shader.cpp b/src/lua/modules/graphics/je_lua_shader.cpp
index d61f477..c15e37a 100644
--- a/src/lua/modules/graphics/je_lua_shader.cpp
+++ b/src/lua/modules/graphics/je_lua_shader.cpp
@@ -9,19 +9,19 @@ namespace JinEngine
{
namespace Lua
{
-
- typedef Ref<Shader>& ShaderRef;
+
+ typedef Ref<Shader>& ShaderRef;
static inline ShaderRef checkShader(lua_State* L)
{
Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_SHADER);
- return proxy->getRef<Shader>();
+ return proxy->getRef<Shader>();
}
/**
* jsl:sendNumber("variable", 0.1)
*/
- LUA_IMPLEMENT 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;
}
- LUA_IMPLEMENT 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;
}
- LUA_IMPLEMENT 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;
}
- LUA_IMPLEMENT 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;
}
- LUA_IMPLEMENT 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;
}
- LUA_IMPLEMENT 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,7 +98,7 @@ namespace JinEngine
return 0;
}
- LUA_IMPLEMENT int l_sendColor (lua_State* L)
+ LUA_IMPLEMENT int l_sendColor(lua_State* L)
{
return l_sendVec4(L);
}