From 5642eb01eba0a475e6010f5847e6c615ff27b329 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 24 Nov 2014 11:29:00 +0000 Subject: [PATCH] EgtInterface 1.5k4 : - aggiunta EgtGetSceneInfo. --- API_Scene.cpp | 18 ++++++++++++++++++ EgtInterface.rc | Bin 11534 -> 11534 bytes 2 files changed, 18 insertions(+) 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 c974ddd1f0a2c790127aeab838b6b3ee5b5b378d..951649f481c86de73bcdd14bf56602f724b69dbc 100644 GIT binary patch delta 96 zcmeB+>WkX&gN@N-^Fh9oOq1Ot1twqO%mZ>Ax$0TKqRz~WCX*exQYXJte6-m|*Z|0d esjUO6^Jm;FA`KP3$~0L@5vU!cVe>mh1#SRJ`yY$| delta 96 zcmeB+>WkX&gN@O6^Fh9oOq1Ot1twqO%mZ>Ax$0TKqRz~W#*-bnQYXJte6-m|*Z|0d esjUO6^Jm;FA`KP3$~0L@5vU!cVe>mh1#SRIaUX;L