aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/graphics/texture.cpp')
-rw-r--r--src/lua/modules/graphics/texture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/modules/graphics/texture.cpp b/src/lua/modules/graphics/texture.cpp
index 63ab5f2..15e258c 100644
--- a/src/lua/modules/graphics/texture.cpp
+++ b/src/lua/modules/graphics/texture.cpp
@@ -32,12 +32,12 @@ namespace JinEngine
return 1;
}
- static int l_setAnchor(lua_State* L)
+ static int l_setOrigin(lua_State* L)
{
TextureRef ref = checkTexture(L);
int x = luax_checknumber(L, 2);
int y = luax_checknumber(L, 3);
- ref->setAnchor(x, y);
+ ref->setOrigin(x, y);
return 0;
}
@@ -61,7 +61,7 @@ namespace JinEngine
{ "getWidth", l_getWidth },
{ "getHeight", l_getHeight },
{ "getSize", l_getSize },
- { "setAnchor", l_setAnchor },
+ { "setOrigin", l_setOrigin },
{ 0, 0 }
};