From 551bb713e434477d664e4ba4f99df5d0b8e358a7 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 6 Mar 2014 08:17:57 +0000 Subject: [PATCH] EgtGraphics 1.5c1 : - gestione colore da attributi. --- EgtGraphics.rc | Bin 11390 -> 11390 bytes SceneBasic.cpp | 30 ++++++++++++++++++++---------- SceneGeom.cpp | 6 ++++++ 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/EgtGraphics.rc b/EgtGraphics.rc index 553dda1070ff5c527494be6e816106fdbdac6ae2..704a7d3ffc31a832400ed1ba63b85c3a3faa7091 100644 GIT binary patch delta 105 zcmewt@h@V-CpK1N1|0^&&G%*bnVFM;jE@SgjGO(qO_<>l`l`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 ;