EgtGraphics 1.5h2 :

- corretto errore con OldGraphics
- aggiunto a info dato su tipo driver (old/new way).
This commit is contained in:
Dario Sassi
2014-08-18 09:00:14 +00:00
parent e9fadd2357
commit ea2df9655f
4 changed files with 8 additions and 5 deletions
+5 -3
View File
@@ -173,11 +173,12 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
}
// ciclo di disegno
bool bStartA ;
bool bStartA = false ;
OGALIST::iterator iIter ;
for ( iIter = m_ogaList.begin() ; iIter != m_ogaList.end() ; ++ iIter) {
switch ( iIter->m_nType) {
case OgAtom::START :
bStartA = false ;
glBegin( iIter->m_nMode) ;
break ;
case OgAtom::START_A :
@@ -232,11 +233,12 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
glColor4f( colMark.GetRed(), colMark.GetGreen(), colMark.GetBlue(), colMark.GetAlpha()) ;
// ciclo di disegno
bool bStartA ;
bool bStartA = false ;
OGALIST::iterator iIter ;
for ( iIter = m_ogaList.begin() ; iIter != m_ogaList.end() ; ++ iIter) {
switch ( iIter->m_nType) {
case OgAtom::START :
bStartA = false ;
glBegin( iIter->m_nMode) ;
break ;
case OgAtom::START_A :
@@ -250,7 +252,7 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
break ;
case OgAtom::VERT :
if ( ! bStartA || bShowAux)
glVertex3fv( iIter->m_fVal) ;
glVertex3fv( iIter->m_fVal) ;
break ;
// non si imposta la normale sono solo curve
// non si impostano i colori, si usa quello di marcatura