EgtInterface 1.6c9 :
- EgtGraphics, EgtExchange ed EgtMachKernel sono caricabili opzionalmente.
This commit is contained in:
+12
-8
@@ -15,6 +15,8 @@
|
||||
#include "stdafx.h"
|
||||
#include "API.h"
|
||||
#include "API_Macro.h"
|
||||
#include "DllGraphics.h"
|
||||
#include "DllExchange.h"
|
||||
#include "/EgtDev/Include/EInAPI.h"
|
||||
#include "/EgtDev/Include/EGkGdbExecutor.h"
|
||||
#include "/EgtDev/Include/EExExcExecutor.h"
|
||||
@@ -49,20 +51,22 @@ __stdcall EgtInitTscExec( void)
|
||||
pGdbExec->SetGeomDB( pGseCtx->m_pGeomDB) ;
|
||||
pCmdParser->SetExecutor( Release( pGdbExec)) ;
|
||||
|
||||
// creazione oggetto per esecuzione funzioni di Exchange
|
||||
PtrOwner<IExcExecutor> pExcExec( CreateExcExecutor()) ;
|
||||
VERIFY_NULL( Get( pExcExec), "Error in CreateExcExecutor", FALSE)
|
||||
pExcExec->SetGeomDB( pGseCtx->m_pGeomDB) ;
|
||||
pCmdParser->AddExecutor( Release( pExcExec)) ;
|
||||
|
||||
// eventuale creazione oggetto per esecuzione funzioni di Scene
|
||||
if ( pGseCtx->m_pScene != nullptr) {
|
||||
PtrOwner<ISceExecutor> pSceExec( CreateSceExecutor()) ;
|
||||
if ( pGseCtx->m_pScene != nullptr && IsLoadedGraphicsDll()) {
|
||||
PtrOwner<ISceExecutor> pSceExec( MyCreateSceExecutor()) ;
|
||||
VERIFY_NULL( Get( pSceExec), "Error in CreateSceExecutor", FALSE)
|
||||
pSceExec->SetScene( pGseCtx->m_pScene) ;
|
||||
pCmdParser->AddExecutor( Release( pSceExec)) ;
|
||||
}
|
||||
|
||||
// eventuale creazione oggetto per esecuzione funzioni di Exchange
|
||||
if ( IsLoadedExchangeDll()) {
|
||||
PtrOwner<IExcExecutor> pExcExec( MyCreateExcExecutor()) ;
|
||||
VERIFY_NULL( Get( pExcExec), "Error in CreateExcExecutor", FALSE)
|
||||
pExcExec->SetGeomDB( pGseCtx->m_pGeomDB) ;
|
||||
pCmdParser->AddExecutor( Release( pExcExec)) ;
|
||||
}
|
||||
|
||||
// completo inizializzazioni
|
||||
pCmdParser->Init() ;
|
||||
pGseCtx->m_pTscExec = Release( pCmdParser) ;
|
||||
|
||||
Reference in New Issue
Block a user