Ignore:
Timestamp:
01/27/09 16:29:45 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3291 r3292  
    388388void LoadOrUpdatePVSs(const Vector3 &pos); 
    389389 
    390  
     390string envFileName = "default.env"; 
    391391 
    392392float pvsTotalSamples = .0f; 
     
    435435        Vector3 lightDir(-0.8f, 1.0f, -0.7f); 
    436436 
    437         cout << "=== reading environment file ===" << endl << endl; 
    438  
    439         const string envFileName = "default.env"; 
     437        if (argc > 1) envFileName = argv[1]; 
     438 
     439        cout << "=== reading environment file " << envFileName << " ===" << endl << endl; 
     440 
    440441        if (!env.Read(envFileName)) 
    441442        { 
     
    23922393                        {                        
    23932394                                sprintf(msg[7], "%s:  %6.1f fps", alg_str[renderMode], fps);             
    2394                                 myfont.DrawString(msg[7], 1.3f, winWidth - 300, winHeight - 10.0f); 
     2395                                myfont.DrawString(msg[7], 1.3f, winWidth - 330, winHeight - 10.0f); 
    23952396 
    23962397                                //int mrays = (int)shotRays / 1000000; 
    23972398                                //sprintf(msg[7], "%s:  %04d M rays", alg_str[renderMode], mrays);       
    2398                                 //myfont.DrawString(msg[7], 1.3f, winWidth - 300, winHeight - 60.0f);            
     2399                                //myfont.DrawString(msg[7], 1.3f, winWidth - 330, winHeight - 60.0f);            
    23992400                        } 
    24002401                } 
     
    24022403                { 
    24032404                        sprintf(msg[7], "%s:  %6.1f ms", alg_str[renderMode], rTime); 
    2404                         myfont.DrawString(msg[7], 1.3f, winWidth - 300, winHeight - 10.0f); 
     2405                        myfont.DrawString(msg[7], 1.3f, winWidth - 330, winHeight - 10.0f); 
    24052406                } 
    24062407 
Note: See TracChangeset for help on using the changeset viewer.