Ignore:
Timestamp:
05/20/05 20:28:30 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/work/TestCulling
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/TestCulling/SceneContentGenerator.cpp

    r104 r106  
    1515//----------------------------------------------------------------------- 
    1616SceneContentGenerator::SceneContentGenerator(SceneManager *sm): 
    17 mSceneMgr(sm), mCount(0), 
     17mSceneMgr(sm), mObjectCount(0), 
    1818mMinPos(Vector3(-70.0f, -70.0f, 0.0f)), 
    1919mMaxPos(Vector3(70.0f, 70.0f, 600.0f)),  
     
    3232        Vector3 translationRatio; 
    3333 
    34         int currentCount = mCount; 
     34        int currentCount = mObjectCount; 
    3535        int limit = 0; 
    3636 
    3737        //-- create random values between zero and one 
    38         while ((mCount - currentCount < numObjects) && (limit < 50000)) 
     38        while ((mObjectCount - currentCount < numObjects) && (limit < 50000)) 
    3939        { 
    4040                rotationRatio.x = rand() / (float) RAND_MAX; 
     
    5959{ 
    6060        char name[25]; 
    61         sprintf(name, "Entity%d", mCount++); 
     61        sprintf(name, "Entity%d", mObjectCount++); 
    6262                 
    6363        Entity *ent = mSceneMgr->createEntity(name, objName); 
     
    9898int SceneContentGenerator::GetObjectCount() 
    9999{ 
    100         return mCount; 
     100        return mObjectCount; 
    101101} 
    102102//----------------------------------------------------------------------- 
  • trunk/VUT/work/TestCulling/SceneContentGenerator.h

    r86 r106  
    4646 
    4747        SceneManager *mSceneMgr; 
    48         int mCount;             // The number of objects on the screen 
     48        int mObjectCount;               // The number of objects on the screen 
    4949}; 
    5050 
Note: See TracChangeset for help on using the changeset viewer.