aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_texture_font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture_font.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_texture_font.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lua/modules/graphics/je_lua_texture_font.cpp b/src/lua/modules/graphics/je_lua_texture_font.cpp
index 5bbe154..61c559b 100644
--- a/src/lua/modules/graphics/je_lua_texture_font.cpp
+++ b/src/lua/modules/graphics/je_lua_texture_font.cpp
@@ -45,21 +45,20 @@ namespace JinEngine
Text* text = p2->getObject<Text>();
page = tf->typeset(*text, lineheight, spacing);
}
- Proxy* pxyPage = luax_newinstance(L, Jin_Lua_Page);
Shared<Page>* shrPage = new Shared<Page>(page, Jin_Lua_Page);
shrPage->setDependency((int)PageDependency::DEP_TEXTURE_FONT, &shrTexFont);
- pxyPage->bind(shrPage);
+ Proxy* pxyPage = luax_newinstance(L, Jin_Lua_Page, shrPage);
return 1;
}
LUA_EXPORT void luaopen_TextureFont(lua_State* L)
{
- luaL_Reg f[] = {
+ luaL_Reg methods[] = {
{ "__gc", l_gc },
{ "typeset", l_typeset },
{ 0, 0 }
};
- luax_newtype(L, Jin_Lua_TextureFont, f);
+ luax_newtype(L, Jin_Lua_TextureFont, methods);
}
} // namespace Lua