EgtGraphics :

- migliorata gestione oggetti senza visualizzazione
- migliorata gestione errori di visualizzazione.
This commit is contained in:
Dario Sassi
2024-08-23 19:00:57 +02:00
parent c77d7cffe8
commit 076c74488f
8 changed files with 48 additions and 12 deletions
+14 -2
View File
@@ -51,8 +51,8 @@ void
ObjMultiGraphics::SetScene( Scene* pScene)
{
m_pScene = pScene ;
for ( size_t i = 0 ; i < m_vOEGR.size() ; ++ i)
m_vOEGR[i]->SetScene( pScene) ;
for ( auto& pOEGR : m_vOEGR)
pOEGR->SetScene( pScene) ;
}
//----------------------------------------------------------------------------
@@ -77,6 +77,18 @@ ObjMultiGraphics::Clear( void)
m_vOEGR[m_nCurr]->Clear() ;
}
//----------------------------------------------------------------------------
bool
ObjMultiGraphics::Validate( void)
{
if ( ! m_bValid) {
if ( m_nCurr < 0 || m_nCurr >= int( m_vOEGR.size()))
return false ;
m_bValid = m_vOEGR[m_nCurr]->Validate() ;
}
return m_bValid ;
}
//----------------------------------------------------------------------------
bool
ObjMultiGraphics::AddColor( const Color& colC)