EgtExecutor 1.6g3 :

- correzione controlli in ExeCreateGeoFrame
- ExeInitGeomDB rinominata ExeInitContext
- aggiunta ExeDeleteContext
- migliorato log di ExeExit
- aggiunta possibilità di leggere e scrivere variabili LUA_Base.cpp
- aggiunta possibilità di chiamare funzioni Lua.
This commit is contained in:
Dario Sassi
2015-07-14 15:48:55 +00:00
parent d070901ce0
commit c5fdfea88c
27 changed files with 673 additions and 524 deletions
+18 -3
View File
@@ -25,7 +25,7 @@ using namespace std ;
//-----------------------------------------------------------------------------
int
ExeInitGeomDB( void)
ExeInitContext( void)
{
// creo e recupero un contesto libero
int nGseCtx = CreateGseContext() ;
@@ -44,13 +44,28 @@ ExeInitGeomDB( void)
pGseCtx->m_pGeomDB->SetDefaultMaterial( pGseCtx->m_colDef) ;
// rendo corrente il contesto
SetCurrGseContext( nGseCtx) ;
// log avvio DB geometrico
string sLog = "GeomDB started " + ToString( nGseCtx) ;
// log avvio Context (DB geometrico)
string sLog = "Context " + ToString( nGseCtx) + " started" ;
LOG_INFO( GetLogger(), sLog.c_str())
return nGseCtx ;
}
//-----------------------------------------------------------------------------
int
ExeDeleteContext( int nGseCtx)
{
// se contesto corrente, lo resetto
if ( nGseCtx == GetIndCurrGseContext())
ResetCurrGseContext() ;
// lo cancello
bool bOk = DeleteGseContext( nGseCtx) ;
// log arresto Context (DB geometrico + eventuale Scene)
string sLog = "Context " + ToString( nGseCtx) + ( bOk ? " deleted" : " not found") ;
LOG_INFO( GetLogger(), sLog.c_str())
return bOk ;
}
//-----------------------------------------------------------------------------
bool
ExeSetCurrentContext( int nGseCtx)