Changeset 504 for trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.cpp
- Timestamp:
- 01/06/06 11:31:28 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.cpp
r502 r504 83 83 for (i=0; i < mesh->mFaces.size(); i++) { 84 84 if (mWireFrame) 85 glBegin(GL_LINE_LOOP); 86 else 85 87 glBegin(GL_POLYGON); 86 else87 glBegin(GL_LINE_LOOP);88 88 89 89 Face *face = mesh->mFaces[i]; … … 501 501 float dist = Magnitude(mSceneGraph->GetBox().Diagonal())*0.05; 502 502 Vector3 pos = mViewPoint - dist*Vector3(mViewDirection.x, 503 1,503 -1, 504 504 mViewDirection.y); 505 505 … … 508 508 509 509 glLoadIdentity(); 510 gluLookAt( mViewPoint.x, mViewPoint.y, mViewPoint.z,510 gluLookAt(pos.x, pos.y, pos.z, 511 511 target.x, target.y, target.z, 512 512 up.x, up.y, up.z); … … 514 514 515 515 } 516 517 void 518 GlRendererWidget::keyPressEvent ( QKeyEvent * e ) 519 { 520 switch (e->key()) { 521 case Qt::Key_T: 522 mTopView = !mTopView; 523 updateGL(); 524 break; 525 default: 526 e->ignore(); 527 break; 528 } 529 530 }
Note: See TracChangeset
for help on using the changeset viewer.