EgtGraphics :
- migliorata gestione oggetti senza visualizzazione - migliorata gestione errori di visualizzazione.
This commit is contained in:
+14
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user