diff --git a/API_Scene.cpp b/API_Scene.cpp index 8b811bd..52a3df9 100644 --- a/API_Scene.cpp +++ b/API_Scene.cpp @@ -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) diff --git a/EgtInterface.rc b/EgtInterface.rc index c974ddd..951649f 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ