EgtGraphics 1.5c1 :
- gestione colore da attributi.
This commit is contained in:
@@ -108,6 +108,12 @@ Scene::DrawGroup( int nId)
|
||||
IGeoObj* pGeoObj = pIter->GetGeoObj() ;
|
||||
if ( pGeoObj == nullptr)
|
||||
return false ;
|
||||
// provvisorio per colore
|
||||
Color cCol ;
|
||||
if ( pIter->GetColor( cCol))
|
||||
glColor3f( cCol.GetRed(), cCol.GetGreen(), cCol.GetBlue()) ;
|
||||
else
|
||||
glColor3f( 1, 1, 1) ;
|
||||
// lo disegno
|
||||
if ( ! DrawGeoObj( pGeoObj))
|
||||
return false ;
|
||||
|
||||
Reference in New Issue
Block a user