EgtGraphics 1.5c1 :

- gestione colore da attributi.
This commit is contained in:
Dario Sassi
2014-03-06 08:17:57 +00:00
parent b7ebe4b6f5
commit 551bb713e4
3 changed files with 26 additions and 10 deletions
+6
View File
@@ -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 ;