Changeset 106 for trunk/VUT/work/TestCulling
- Timestamp:
- 05/20/05 20:28:30 (20 years ago)
- Location:
- trunk/VUT/work/TestCulling
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCulling/SceneContentGenerator.cpp
r104 r106 15 15 //----------------------------------------------------------------------- 16 16 SceneContentGenerator::SceneContentGenerator(SceneManager *sm): 17 mSceneMgr(sm), m Count(0),17 mSceneMgr(sm), mObjectCount(0), 18 18 mMinPos(Vector3(-70.0f, -70.0f, 0.0f)), 19 19 mMaxPos(Vector3(70.0f, 70.0f, 600.0f)), … … 32 32 Vector3 translationRatio; 33 33 34 int currentCount = m Count;34 int currentCount = mObjectCount; 35 35 int limit = 0; 36 36 37 37 //-- create random values between zero and one 38 while ((m Count - currentCount < numObjects) && (limit < 50000))38 while ((mObjectCount - currentCount < numObjects) && (limit < 50000)) 39 39 { 40 40 rotationRatio.x = rand() / (float) RAND_MAX; … … 59 59 { 60 60 char name[25]; 61 sprintf(name, "Entity%d", m Count++);61 sprintf(name, "Entity%d", mObjectCount++); 62 62 63 63 Entity *ent = mSceneMgr->createEntity(name, objName); … … 98 98 int SceneContentGenerator::GetObjectCount() 99 99 { 100 return m Count;100 return mObjectCount; 101 101 } 102 102 //----------------------------------------------------------------------- -
trunk/VUT/work/TestCulling/SceneContentGenerator.h
r86 r106 46 46 47 47 SceneManager *mSceneMgr; 48 int m Count; // The number of objects on the screen48 int mObjectCount; // The number of objects on the screen 49 49 }; 50 50
Note: See TracChangeset
for help on using the changeset viewer.