Sdk/Lua: Bind TextureLibrary and TextureManager

This commit is contained in:
Lynix
2016-10-27 11:29:02 +02:00
parent 9206cf65b5
commit 6b1d1a1d64
4 changed files with 41 additions and 0 deletions

View File

@@ -756,6 +756,23 @@ namespace Nz
return 1;
}
/*!
* \brief Replies by value for Lua
* \return 1 in case of success
*
* \param instance Lua instance to interact with
* \param val Resulting ImageParams
*/
inline int LuaImplReplyVal(const LuaInstance& instance, ImageParams&& val, TypeTag<ImageParams>)
{
instance.PushTable(0, 2);
instance.PushField("LevelCount", val.levelCount);
instance.PushField("LoadFormat", val.loadFormat);
return 1;
}
/*!
* \brief Replies by value for Lua
* \return 1 in case of success