EgtExecutor :

- aggiunte funzioni Exe e Lua VolZmapResolution e VolZmapChangeResolution.
This commit is contained in:
Dario Sassi
2020-09-18 16:18:53 +00:00
parent 1497d61024
commit 04f6923aff
4 changed files with 216 additions and 138 deletions
+18
View File
@@ -39,6 +39,23 @@ LuaExplodeVolume( lua_State* L)
return 2 ;
}
//----------------------------------------------------------------------------
static int
LuaVolZmapChangeResolution( lua_State* L)
{
// 2 parametri : Id, nNewRes
int nId ;
LuaCheckParam( L, 1, nId)
int nNewRes ;
LuaCheckParam( L, 2, nNewRes)
LuaClearStack( L) ;
// cambio la risoluzione
bool bOk = ExeVolZmapChangeResolution( nId, nNewRes) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaRemoveVolZmapPart( lua_State* L)
@@ -332,6 +349,7 @@ LuaInstallGdbModifyVol( LuaMgr& luaMgr)
{
bool bOk = ( &luaMgr != nullptr) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtExplodeVolume", LuaExplodeVolume) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapChangeResolution", LuaVolZmapChangeResolution) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtRemoveVolZmapPart", LuaRemoveVolZmapPart) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapSetStdTool", LuaVolZmapSetStdTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapSetAdvTool", LuaVolZmapSetAdvTool) ;