EgtGraphics 1.5b5 :

- aggiunto ZoomWin
- aggiunto DrawRectWin.
This commit is contained in:
Dario Sassi
2014-02-26 13:13:13 +00:00
parent cae2cf6ab0
commit 3ca0638105
7 changed files with 267 additions and 11 deletions
+9 -5
View File
@@ -54,6 +54,10 @@ Scene::Scene( void)
// View data
m_ptCenter = ORIG ;
SetCamera( 0, 0, 0) ;
// WinRect
m_bOutlineWR = true ;
m_colorWR.Set( 0, 0, 0) ;
m_bWinRect = false ;
}
//----------------------------------------------------------------------------
@@ -346,10 +350,7 @@ Scene::CalcExtView( void)
return false ;
// calcolo il riferimento di vista
Frame3d frView ;
Vector3d vtZ = m_vtDirCamera ;
Vector3d vtY = m_vtUp ;
Vector3d vtX = vtY ^ vtZ ;
if ( ! frView.Set( m_ptCenter + m_dDistCamera * vtZ, vtX, vtY, vtZ))
if ( ! CalcCameraFrame( frView))
return false ;
// calcolo l'estensione nel riferimento di vista
m_b3ExtView = m_b3ExtWorld ;
@@ -609,9 +610,12 @@ Scene::Draw( void)
// colore di default
glColor4f( 1, 1, 1, 1) ;
// disegno
// disegno le geometrie del DB
DrawGroup( GDB_ID_ROOT) ;
// aggiungo disegni diretti
DrawWinRect() ;
// aggiorno
glFlush() ;