EgtGraphics 1.8b2 :
- aggiunta in interfaccia funzione GetImage.
This commit is contained in:
+9
-2
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user