Changeset 2864 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 08/25/08 08:34:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2861 r2864 746 746 void SetupEyeView() 747 747 { 748 Matrix4x4 matViewing, matProjection;749 750 748 // store matrix of last frame 751 749 oldViewProjMatrix = matProjectionView; … … 758 756 glMatrixMode(GL_MODELVIEW); 759 757 glLoadIdentity(); 758 759 // set up the camera view 760 760 camera->SetupCameraView(); 761 761 762 // set lights 762 763 GLfloat position[] = {0.8f, -1.0f, 0.7f, 0.0f}; 763 764 glLightfv(GL_LIGHT0, GL_POSITION, position); … … 767 768 768 769 770 ///////////////// 771 772 Matrix4x4 matViewing, matProjection; 773 769 774 camera->GetModelViewMatrix(matViewing); 770 775 camera->GetProjectionMatrix(matProjection); 771 776 777 // store matrix for later use 772 778 matProjectionView = matViewing * matProjection; 773 779
Note: See TracChangeset
for help on using the changeset viewer.