Changeset 313 for trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
- Timestamp:
- 10/10/05 04:19:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
r312 r313 28 28 { 29 29 X3dParser parser; 30 int maxViewCells = 0; 30 31 environment->GetFloatValue("ViewCells.height", parser.mViewCellHeight); 31 32 return parser.ParseFile(filename, mViewCells); 32 environment->GetIntValue("ViewCells.maxViewCells", maxViewCells); 33 34 bool loaded = parser.ParseFile(filename, mViewCells); 35 36 if (maxViewCells > 0) 37 { 38 while (mViewCells.size() > maxViewCells) 39 { 40 ViewCell *vc = mViewCells.back(); 41 DEL_PTR(vc); 42 mViewCells.pop_back(); 43 } 44 } 45 return loaded; 33 46 } 34 47 … … 84 97 85 98 int maxViewCells = 0; 86 environment->GetIntValue(" BspTree.maxViewCells", maxViewCells);99 environment->GetIntValue("ViewCells.maxViewCells", maxViewCells); 87 100 88 101 mSceneGraph->CollectObjects(&objects);
Note: See TracChangeset
for help on using the changeset viewer.