EgtInterface 1.5i3 :
- modifiche per controllo chiave di protezione.
This commit is contained in:
@@ -85,6 +85,14 @@ __stdcall EgtExit( void)
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetKey( const wchar_t* sKey)
|
||||
{
|
||||
SetEGkKey( LPSTR( WtoA( sKey))) ;
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetFont( const wchar_t* sNfeFontDir, const wchar_t* sDefaultFont)
|
||||
|
||||
+3
-4
@@ -30,9 +30,6 @@ using namespace std ;
|
||||
int
|
||||
__stdcall EgtInitGeomDB( void)
|
||||
{
|
||||
// inizializzazioni DB geometrico
|
||||
PtrOwner<IGeomDB> pGeomDB( CreateGeomDB()) ;
|
||||
VERIFY_NULL( Get( pGeomDB), "Error in CreateGeomDB", 0)
|
||||
// creo e recupero un contesto libero
|
||||
int nGseCtx = CreateGseContext() ;
|
||||
if ( nGseCtx == 0) {
|
||||
@@ -40,11 +37,13 @@ __stdcall EgtInitGeomDB( void)
|
||||
return 0 ;
|
||||
}
|
||||
GseContext* pGseCtx = GetGseContext( nGseCtx) ;
|
||||
// inizializzazioni DB geometrico
|
||||
PtrOwner<IGeomDB> pGeomDB( CreateGeomDB()) ;
|
||||
VERIFY_NULL( Get( pGeomDB), "Error in CreateGeomDB", nGseCtx)
|
||||
// inserisco il GeomDB nel contesto
|
||||
pGseCtx->m_pGeomDB = Release( pGeomDB) ;
|
||||
pGseCtx->m_pGeomDB->Init() ;
|
||||
pGseCtx->m_pGeomDB->SetDefaultMaterial( pGseCtx->m_colDef) ;
|
||||
|
||||
// log avvio DB geometrico
|
||||
string sLog = "GeomDB started " + ToString( nGseCtx) ;
|
||||
LOG_INFO( GetLogger(), sLog.c_str())
|
||||
|
||||
@@ -26,6 +26,9 @@
|
||||
return Ret ; \
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
#define VERIFY_CTX( pC, Ret) VERIFY_NULL( pC, "Context invalid", Ret)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
#define VERIFY_GEOMDB( pG, Ret) VERIFY_NULL( pG, "GeomDB invalid", Ret)
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ BOOL
|
||||
__stdcall EgtInitScene( int nGseCtx, HWND hWnd, int nDriver, int b2Buff, int nColorBits, int nDepthBits)
|
||||
{
|
||||
GseContext* pGseCtx = GetGseContext( nGseCtx) ;
|
||||
VERIFY_CTX_GEOMDB( pGseCtx, FALSE)
|
||||
VERIFY_CTX( pGseCtx, FALSE)
|
||||
// inizializzazione scena OpenGL
|
||||
PtrOwner<IEGrScene> pScene( CreateEGrScene()) ;
|
||||
VERIFY_NULL( Get( pScene), "Error in CreateEGrScene", FALSE)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user