Ignore:
Timestamp:
08/25/08 08:34:10 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r2861 r2864  
    746746void SetupEyeView() 
    747747{ 
    748         Matrix4x4 matViewing, matProjection; 
    749  
    750748        // store matrix of last frame 
    751749        oldViewProjMatrix = matProjectionView; 
     
    758756        glMatrixMode(GL_MODELVIEW); 
    759757        glLoadIdentity(); 
     758 
     759        // set up the camera view 
    760760        camera->SetupCameraView(); 
    761761 
     762        // set lights 
    762763        GLfloat position[] = {0.8f, -1.0f, 0.7f, 0.0f}; 
    763764        glLightfv(GL_LIGHT0, GL_POSITION, position); 
     
    767768 
    768769         
     770        ///////////////// 
     771 
     772        Matrix4x4 matViewing, matProjection; 
     773 
    769774        camera->GetModelViewMatrix(matViewing); 
    770775        camera->GetProjectionMatrix(matProjection); 
    771776 
     777        // store matrix for later use 
    772778        matProjectionView = matViewing * matProjection; 
    773779         
Note: See TracChangeset for help on using the changeset viewer.