EgtGraphics 1.8b2 :

- aggiunta in interfaccia funzione GetImage.
This commit is contained in:
Dario Sassi
2017-02-13 08:20:31 +00:00
parent 2cf0a63522
commit 5be1bf8dc7
7 changed files with 141 additions and 3 deletions
+9 -2
View File
@@ -683,6 +683,13 @@ Scene::Prepare( void)
//----------------------------------------------------------------------------
bool
Scene::Draw( void)
{
return MyDraw( true) ;
}
//----------------------------------------------------------------------------
bool
Scene::MyDraw( bool bSwapBF)
{
// sistemo lo sfondo e lo Zbuffer
if ( ! Background())
@@ -811,7 +818,7 @@ Scene::Draw( void)
}
// scambio i buffer back e front ( eseguita solo se previsti)
if ( ! SwapBuffers( m_hDC))
if ( bSwapBF && ! SwapBuffers( m_hDC))
LOG_INFO( GetEGrLogger(), "Draw SwapBuffers error")
return true ;
@@ -877,7 +884,7 @@ Scene::Destroy( void)
// cancellazione textures
if ( ! m_TextMgr.Clear())
LOG_ERROR( GetEGrLogger(), "Error uloading textures from OpenGl") ;
LOG_ERROR( GetEGrLogger(), "Error unloading textures from OpenGl") ;
// cancellazione rendering context
wglMakeCurrent( nullptr, nullptr) ;