Ignore:
Timestamp:
06/20/08 20:04:15 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
6 edited

Legend:

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

    r2782 r2793  
    243243                { 
    244244                        cerr << "ERROR in AxisAlignedBox3::GetVertex N=" << N <<  "\n"; 
    245                         exit(0); 
    246245                } 
    247246        } 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BinaryLoader.cpp

    r2792 r2793  
    6868        { 
    6969                trafo = new Matrix4x4(); 
    70                 //*trafo = IdentityMatrix(); 
    7170                str.read(reinterpret_cast<char *>(trafo->x), sizeof(Matrix4x4)); 
    72                 //str.read(reinterpret_cast<char *>(trafo), sizeof(Matrix4x4)); 
    73                 //cout << "m:\n" << *trafo<<endl; 
    7471        } 
    7572 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Geometry.h

    r2782 r2793  
    2020        */ 
    2121        Geometry(Vector3 *vertices, Vector3 *normals, float *texcoords, int numVertices, bool delData); 
     22 
    2223        ~Geometry(); 
    2324        /** Render the geometry 
     
    4041        ////////// 
    4142 
    42         unsigned int mVboId; 
    43  
    4443        Vector3 *mVertices; 
    4544 
     
    4746 
    4847        float *mTexCoords; 
     48 
     49        unsigned int mVboId; 
    4950 
    5051        int mNumVertices; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.h

    r2782 r2793  
    3535        */ 
    3636        void Clear(); 
    37  
     37        /** Returns the number entities currently in the queue. 
     38        */ 
    3839        int GetSize() const { return (int)mEntities.size(); } 
    3940 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntity.h

    r2792 r2793  
    1616 
    1717/** Class representing a scene entity. 
    18     A scene entity basicly consists of geometry, transformation, and a material 
     18    A scene entity basically consists of geometry, transformation, and a material 
    1919*/ 
    2020class SceneEntity 
  • 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.