EgtInterface 1.5k4 :
- aggiunta EgtGetSceneInfo.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "API.h"
|
||||
#include "API_Macro.h"
|
||||
#include "/EgtDev/Include/EInAPI.h"
|
||||
#include "/EgtDev/Include/EGnStringConverter.h"
|
||||
#include "/EgtDev/Include/EgtPointerOwner.h"
|
||||
|
||||
using namespace std ;
|
||||
@@ -53,6 +54,23 @@ __stdcall EgtInitScene( HWND hWnd, int nDriver, int b2Buff, int nColorBits, int
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetSceneInfo( wchar_t*& wsInfo)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
// recupero le informazioni sulla scena
|
||||
string sInfo ;
|
||||
sInfo += pGseCtx->m_pScene->GetOpenGLInfo() ;
|
||||
sInfo += "\r\n" ;
|
||||
sInfo += pGseCtx->m_pScene->GetGLSLInfo() ;
|
||||
sInfo += "\r\n" ;
|
||||
sInfo += pGseCtx->m_pScene->GetPixelFormatInfo() ;
|
||||
wsInfo = _wcsdup( stringtoW( sInfo)) ;
|
||||
return (( wsInfo == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetBackground( const int TopCol[4], const int BottomCol[4], BOOL bRedraw)
|
||||
|
||||
Reference in New Issue
Block a user