diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_texture.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lua/modules/graphics/je_lua_texture.cpp b/src/lua/modules/graphics/je_lua_texture.cpp index a643dae..5236438 100644 --- a/src/lua/modules/graphics/je_lua_texture.cpp +++ b/src/lua/modules/graphics/je_lua_texture.cpp @@ -10,9 +10,9 @@ namespace JinEngine namespace Lua { - typedef Shared<Texture>& TextureRef; + typedef Shared<Texture>& SharedTexture; - LUA_IMPLEMENT inline TextureRef checkTexture(lua_State* L) + LUA_IMPLEMENT inline SharedTexture checkTexture(lua_State* L) { Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_TEXTURE); return proxy->getShared<Texture>(); @@ -20,23 +20,23 @@ namespace JinEngine LUA_IMPLEMENT int l_getWidth(lua_State* L) { - TextureRef ref = checkTexture(L); - luax_pushnumber(L, ref->getWidth()); + SharedTexture shared = checkTexture(L); + luax_pushnumber(L, shared->getWidth()); return 1; } LUA_IMPLEMENT int l_getHeight(lua_State *L) { - TextureRef ref = checkTexture(L); - luax_pushnumber(L, ref->getHeight()); + SharedTexture shared = checkTexture(L); + luax_pushnumber(L, shared->getHeight()); return 1; } LUA_IMPLEMENT int l_getSize(lua_State* L) { - TextureRef ref = checkTexture(L); - luax_pushnumber(L, ref->getWidth()); - luax_pushnumber(L, ref->getHeight()); + SharedTexture shared = checkTexture(L); + luax_pushnumber(L, shared->getWidth()); + luax_pushnumber(L, shared->getHeight()); return 2; } |