aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/shader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/graphics/shader.cpp')
-rw-r--r--src/lua/modules/graphics/shader.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lua/modules/graphics/shader.cpp b/src/lua/modules/graphics/shader.cpp
index db78c4d..a9603bc 100644
--- a/src/lua/modules/graphics/shader.cpp
+++ b/src/lua/modules/graphics/shader.cpp
@@ -10,12 +10,12 @@ namespace lua
using namespace jin::graphics;
- typedef Ref<JSLProgram>& JSLRef;
+ typedef Ref<Shader>& ShaderRef;
- static inline JSLRef checkJSLProgram(lua_State* L)
+ static inline ShaderRef checkShader(lua_State* L)
{
Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_SHADER);
- return proxy->getRef<JSLProgram>();
+ return proxy->getRef<Shader>();
}
/**
@@ -23,7 +23,7 @@ namespace lua
*/
static int l_sendNumber (lua_State* L)
{
- JSLRef ref = checkJSLProgram(L);
+ ShaderRef ref = checkShader(L);
const char* variable = luax_checkstring(L, 2);
float number = luax_checknumber(L, 3);
ref->sendFloat(variable, number);
@@ -32,7 +32,7 @@ namespace lua
static int l_sendTexture (lua_State* L)
{
- JSLRef ref = checkJSLProgram(L);
+ ShaderRef ref = checkShader(L);
const char* variable = luax_checkstring(L, 2);
Proxy* proxy = (Proxy*)luax_checktype(L, 3, JIN_GRAPHICS_TEXTURE);
Ref<Texture>& tex = proxy->getRef<Texture>();
@@ -42,7 +42,7 @@ namespace lua
static int l_sendCanvas (lua_State* L)
{
- JSLRef ref = checkJSLProgram(L);
+ ShaderRef ref = checkShader(L);
const char* variable = luax_checkstring(L, 2);
Proxy* proxy = (Proxy*)luax_checktype(L, 3, JIN_GRAPHICS_CANVAS);
Ref<Canvas>& canvas = proxy->getRef<Canvas>();
@@ -52,7 +52,7 @@ namespace lua
static int l_sendVec2 (lua_State* L)
{
- JSLRef ref = checkJSLProgram(L);
+ ShaderRef ref = checkShader(L);
const char* variable = luax_checkstring(L, 2);
if (!luax_istable(L, 3))
{
@@ -67,7 +67,7 @@ namespace lua
static int l_sendVec3 (lua_State* L)
{
- JSLRef ref = checkJSLProgram(L);
+ ShaderRef ref = checkShader(L);
const char* variable = luax_checkstring(L, 2);
if (!luax_istable(L, 3))
{
@@ -83,7 +83,7 @@ namespace lua
static int l_sendVec4 (lua_State* L)
{
- JSLRef ref = checkJSLProgram(L);
+ ShaderRef ref = checkShader(L);
const char* variable = luax_checkstring(L, 2);
if (!luax_istable(L, 3))
{