Ignore:
Timestamp:
06/20/08 20:04:15 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2792 r2793  
    3434/// the hierarchy 
    3535Bvh *bvh = NULL; 
     36/// handles scene loading 
     37BinaryLoader *loader = NULL; 
    3638/// the scene camera 
    3739Camera *camera = NULL; 
     
    5052int maxBatchSize = 50; 
    5153 
    52 const float keyForwardMotion = 1.0f; 
     54const float keyForwardMotion = 0.5f; 
    5355const float keyRotation = 0.05f; 
    5456 
     
    131133        int returnCode = 0; 
    132134 
    133 //#ifdef _CRT_SET 
     135#ifdef _CRT_SET 
    134136 
    135137        //Now just call this function at the start of your program and if you're 
     
    142144        _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_FILE); 
    143145        _CrtSetReportFile(_CRT_ASSERT,_CRTDBG_FILE_STDERR);  
    144 //#endif 
     146#endif 
    145147 
    146148 
     
    170172        MiddleMotion(0, 0); 
    171173 
    172         BinaryLoader loader; 
     174 
     175        loader = new BinaryLoader(); 
    173176 
    174177        //const string filename("data/city/model/city.dem"); 
    175178        const string filename = string(model_path + "city.dem"); 
    176179 
    177         if (loader.Load(filename, sceneEntities)) 
     180        if (loader->Load(filename, sceneEntities)) 
    178181                cout << "scene " << filename << " loaded" << endl; 
    179182        else 
     
    183186                exit(0); 
    184187        } 
    185         CleanUp(); 
    186                 exit(0); 
    187188 
    188189        const string bvh_filename = string(model_path + "city.bvh"); 
     
    974975        DEL_PTR(visualization); 
    975976        DEL_PTR(camera); 
     977 
     978        DEL_PTR(loader); 
    976979} 
    977980 
Note: See TracChangeset for help on using the changeset viewer.