Changeset 1004 for GTP/trunk/Lib/Vis/OnlineCullingCHC
- Timestamp:
- 06/07/06 18:38:29 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r975 r1004 1029 1029 OgreBoundingBoxConverter bconverter(this); 1030 1030 1031 1032 GtpVisibilityPreprocessor::Environment *env =1033 mVisibilityManager->GetVisibilityEnvironment()->GetPreprocessorEnvironment();1034 1035 1031 // load the view cells assigning the found objects to the pvss 1036 1032 mViewCellsManager = 1037 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env,false, &bconverter);1033 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, false, &bconverter); 1038 1034 1039 1035 return (mViewCellsManager != NULL); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/include/VisibilityEnvironment.h
r938 r1004 40 40 41 41 protected: 42 GtpVisibilityPreprocessor::Environment *mEnvironment;42 //GtpVisibilityPreprocessor::Environment *Environment::GetSingleton(); 43 43 }; 44 44 } // namespace GtpVisibility -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
r971 r1004 12 12 GtpVisibilityPreprocessor::Debug.open("debug.log"); 13 13 // load environment 14 mEnvironment = new GtpVisibilityPreprocessor::Environment();14 //Environment::GetSingleton() = new GtpVisibilityPreprocessor::Environment::GetSingleton(); 15 15 } 16 16 //----------------------------------------------------------------------- 17 17 VisibilityEnvironment::~VisibilityEnvironment() 18 18 { 19 DEL_PTR(mEnvironment); 19 //DEL_PTR(Environment::GetSingleton()); 20 GtpVisibilityPreprocessor::Environment::DelSingleton(); 20 21 } 21 22 //----------------------------------------------------------------------- … … 23 24 { 24 25 //-- parse environment 25 return mEnvironment->ReadEnvFile(filename.c_str());26 return GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str()); 26 27 } 27 28 //----------------------------------------------------------------------- … … 29 30 { 30 31 char str[200]; 31 mEnvironment->GetStringValue("Scene.filename", str);32 GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str); 32 33 return str; 33 34 } … … 36 37 { 37 38 char str[200]; 38 mEnvironment->GetStringValue("ViewCells.filename", str); 39 GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str); 40 39 41 return str; 40 42 } … … 42 44 GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment() 43 45 { 44 return mEnvironment;46 return GtpVisibilityPreprocessor::Environment::GetSingleton(); 45 47 } 46 48 } // namespace GtpVisibility
Note: See TracChangeset
for help on using the changeset viewer.