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:
+18
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user