EgtGraphics 1.5f1 :
- a parità di Zdepth le entità disegnate dopo sovrascivono le precedenti - aggiunta visualizzazione testi.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "/EgtDev/Include/EGkGeoPoint3d.h"
|
||||
#include "/EgtDev/Include/EGkCurve.h"
|
||||
#include "/EgtDev/Include/EGkSurfTriMesh.h"
|
||||
#include "/EgtDev/Include/EGkExtText.h"
|
||||
#include "/EgtDev/Include/EGkGdbFunct.h"
|
||||
|
||||
using namespace std ;
|
||||
@@ -278,6 +279,21 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, MdStMk siObj)
|
||||
}
|
||||
pGraphics->EndTriangles() ;
|
||||
}
|
||||
// se testo
|
||||
else if ( nGeoType == EXT_TEXT) {
|
||||
// recupero il testo
|
||||
const IExtText* pTXT = GetExtText( pGeoObj) ;
|
||||
if ( pTXT == nullptr)
|
||||
return false ;
|
||||
// calcolo la grafica
|
||||
POLYLINELIST lstPL ;
|
||||
pTXT->ApproxWithLines( 0.01, 5, lstPL) ;
|
||||
pGraphics->Clear() ;
|
||||
pGraphics->AddColor( cCol) ;
|
||||
POLYLINELIST::iterator Iter ;
|
||||
for ( Iter = lstPL.begin() ; Iter != lstPL.end() ; ++ Iter)
|
||||
pGraphics->AddPolyLine( *Iter) ;
|
||||
}
|
||||
}
|
||||
|
||||
// se hiddenline
|
||||
|
||||
Reference in New Issue
Block a user