- Timestamp:
- 05/05/06 15:19:28 (19 years ago)
- Location:
- GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBCBillboardViewMode.h
r900 r909 25 25 bool frameStarted(const Ogre::FrameEvent& evt, Ogre::InputReader *inputReader) 26 26 { 27 Ogre::LogManager::getSingleton().logMessage("Before reloading the textureUnitState:" + mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName()); 28 Ogre::TextureManager::getSingleton().load(mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName(), Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 29 //mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->_load(); 30 Ogre::LogManager::getSingleton().logMessage("After reloading the textureUnitState:" + mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName()); 31 //mWindow->setDebugText(mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName()); 32 27 33 showDebugOverlay(true); 28 34 mWindow->getViewport(0)->setBackgroundColour(Ogre::ColourValue(0.0, 0.0, 0.0, 1.0)); 29 mEpsilonText = Ogre::String("Epsilon:") + Ogre::StringConverter::toString(epsilonX) + Ogre::String(",") + Ogre::StringConverter::toString(epsilonY);30 mWindow->setDebugText(mEpsilonText);31 35 //mEpsilonText = Ogre::String("Epsilon:") + Ogre::StringConverter::toString(epsilonX) + Ogre::String(",") + Ogre::StringConverter::toString(epsilonY); 36 //mWindow->setDebugText(mEpsilonText); 37 32 38 return OgreFrameListenerMode::frameStarted(evt, inputReader); 33 39 } -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/OBA/OBAOgreApplication.h
r900 r909 27 27 OgreBase *mOgreBase; 28 28 Ogre::Root *mRoot; 29 Ogre::SceneManager* mSceneMgr; 29 30 Ogre::Camera* mCamera; 30 31 OgreFrameListener* mFrameListener; -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/scripts/IBRBillboardCloudTreeGeneratorCommandLine.vcproj
r861 r909 24 24 MinimalRebuild="TRUE" 25 25 BasicRuntimeChecks="3" 26 RuntimeLibrary=" 1"26 RuntimeLibrary="3" 27 27 DisableLanguageExtensions="FALSE" 28 28 UsePrecompiledHeader="0" … … 73 73 AdditionalIncludeDirectories="../include;../include/OBA;../include/BBC;../include/IMG;../include/LBBC;../../../../../../../OGRE/trunk/ogrenew/OgreMain/include;../../../../../../../OGRE/trunk/ogrenew/Tools/XMLConverter/include;../../../../../../../NonGTP\Boost;../../../../../../../NonGTP\ImageDebugger\include" 74 74 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" 75 RuntimeLibrary=" 0"75 RuntimeLibrary="2" 76 76 DisableLanguageExtensions="FALSE" 77 77 UsePrecompiledHeader="0" -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/LBBCManager.cpp
r900 r909 76 76 entityLeaves->setMesh(meshLeaves); 77 77 mLeaves->setEntity(entityLeaves); 78 mLeaves->getEntity()->setMesh(meshLeaves);79 78 } 80 79 -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/OBAOgreApplication.cpp
r900 r909 81 81 // If returned true, user clicked OK so initialise 82 82 // Here we choose to let the system create a default rendering window by passing 'true' 83 //m Root->initialise(true);83 //mWindow = mRoot->initialise(true); 84 84 //mWindow->resize(512,512); 85 85 mRoot->initialise(false); … … 101 101 void OgreApplication::createFrameListener(void) 102 102 { 103 mFrameListener = new OgreFrameListener(mWindow);103 OBA::OgreFrameListenerMode *defaultFrameListenerMode; 104 104 105 mFrameListener = new OgreFrameListener(mWindow); 106 defaultFrameListenerMode = mFrameListener->getFrameListenerMode(0); 107 mSceneMgr = defaultFrameListenerMode->getSceneManager(); 108 105 109 mRoot->addFrameListener(mFrameListener); 106 110 }
Note: See TracChangeset
for help on using the changeset viewer.