Changeset 2320 for GTP/trunk/Lib/Illum
- Timestamp:
- 04/05/07 15:38:06 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule
- Files:
-
- 67 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/CausticCasterRenderTechnique.h
r2285 r2320 32 32 TechniqueGroup* parentTechniqueGroup 33 33 ); 34 ~CausticCasterRenderTechnique();34 virtual ~CausticCasterRenderTechnique(); 35 35 36 36 //inherited -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/CausticReceiverRenderTechnique.h
r2285 r2320 18 18 TechniqueGroup* parentTechniqueGroup 19 19 ); 20 ~CausticReceiverRenderTechnique();20 virtual ~CausticReceiverRenderTechnique(); 21 21 22 22 protected: -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/ColorCubeMapRenderTechnique.h
r2240 r2320 41 41 TechniqueGroup* parentTechniqueGroup 42 42 ); 43 ~ColorCubeMapRenderTechnique();43 virtual ~ColorCubeMapRenderTechnique(); 44 44 45 45 /** -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/ConvolvedCubeMapRenderTechnique.h
r2240 r2320 43 43 TechniqueGroup* parentTechniqueGroup 44 44 ); 45 ~ConvolvedCubeMapRenderTechnique();45 virtual ~ConvolvedCubeMapRenderTechnique(); 46 46 47 47 /** -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/CubeMapRenderTechnique.h
r2240 r2320 41 41 TechniqueGroup* parentTechniqueGroup 42 42 ); 43 ~CubeMapRenderTechnique();43 virtual ~CubeMapRenderTechnique(); 44 44 45 45 //inherited -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/DepthShadowReceiverRenderTechnique.h
r2285 r2320 18 18 TechniqueGroup* parentTechniqueGroup 19 19 ); 20 ~DepthShadowReceiverRenderTechnique();20 virtual ~DepthShadowReceiverRenderTechnique(); 21 21 22 22 protected: -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/DistanceCubeMapRenderTechnique.h
r2285 r2320 41 41 TechniqueGroup* parentTechniqueGroup 42 42 ); 43 ~DistanceCubeMapRenderTechnique();43 virtual ~DistanceCubeMapRenderTechnique(); 44 44 45 45 /** -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/HierarchicalParticleSystemTechnique.h
r2240 r2320 32 32 TechniqueGroup* parentTechniqueGroup 33 33 ); 34 ~HierarchicalParticleSystemTechnique();34 virtual ~HierarchicalParticleSystemTechnique(); 35 35 36 36 //inherited -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/IllumVolumeRenderTechnique.h
r2240 r2320 34 34 TechniqueGroup* parentTechniqueGroup 35 35 ); 36 ~IllumVolumeRenderTechnique();36 virtual ~IllumVolumeRenderTechnique(); 37 37 38 38 //inherited -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderTechniques/SBBRenderTechnique.h
r2240 r2320 20 20 TechniqueGroup* parentTechniqueGroup 21 21 ); 22 ~SBBRenderTechnique();22 virtual ~SBBRenderTechnique(); 23 23 }; -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRun.h
r2240 r2320 54 54 virtual bool canJoin(RenderingRun* run){return true;} 55 55 56 virtual void freeAllResources()=0; 57 56 58 protected: 57 59 -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/CausticCubeMapRenderingRun.h
r780 r2320 22 22 unsigned int resolution, 23 23 bool updateAllFace); 24 25 virtual ~CausticCubeMapRenderingRun(){} 24 26 25 27 /** -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/ChildPSystemRenderingRun.h
r2240 r2320 29 29 } 30 30 31 virtual ~ChildPsystemRenderingRun(){} 32 31 33 protected: 32 34 /** -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/CubeMapRenderingRun.h
r2240 r2320 33 33 bool renderEnvironment); 34 34 35 virtual ~CubeMapRenderingRun(){} 35 36 36 37 protected: -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/DepthShadowMapRenderingRun.h
r874 r2320 23 23 this->resolutionY = resolutionY; 24 24 } 25 26 virtual ~DepthShadowMapRenderingRun(){} 25 27 26 28 protected: -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/LightVolumeRenderingRun.h
r2240 r2320 30 30 } 31 31 32 virtual ~LightVolumeRenderingRun(){} 33 32 34 protected: 33 35 //inherited -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/PhaseTextureRenderingRun.h
r2240 r2320 28 28 } 29 29 30 virtual ~PhaseTextureRenderingRun(){} 31 30 32 protected: 31 33 /** -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/PhotonMapRenderingRun.h
r780 r2320 24 24 } 25 25 26 virtual ~PhotonMapRenderingRun(){} 27 26 28 protected: 27 29 //inherited -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/ReducedCubeMapRenderingRun.h
r2240 r2320 33 33 34 34 35 virtual ~ReducedCubeMapRenderingRun(){} 36 35 37 protected: 36 38 /** -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/RenderingRuns/SceneCameraDepthRenderingRun.h
r2240 r2320 18 18 } 19 19 20 virtual ~SceneCameraDepthRenderingRun(){} 21 20 22 protected: 21 23 -
GTP/trunk/Lib/Illum/IllumModule/IllumModule/include/SharedRuns.h
r2240 r2320 175 175 */ 176 176 virtual void unbindAndKillParent(){delete parent; parent = 0;} 177 178 virtual void freeAllResources()=0; 177 179 178 180 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h
r2298 r2320 549 549 */ 550 550 void setFireRenderTargetSize(int size){FireRenderTarget::targetsize = size;} 551 552 void freeAllResources(); 551 553 }; 552 554 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreRenderTechnique.h
r2240 r2320 42 42 OgreRenderable* parentRenderable, 43 43 OgreTechniqueGroup* parentTechniqueGroup); 44 ~OgreRenderTechnique( );44 virtual ~OgreRenderTechnique( ); 45 45 46 46 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreRenderingRun.h
r2240 r2320 25 25 fullscreenGrid = 0; 26 26 } 27 28 virtual ~OgreRenderingRun(){} 27 29 /** 28 30 @brief Conversion to OgreRenderRun. … … 32 34 OgreRenderingRun* asOgreRenderingRun(){return this;} 33 35 34 35 36 protected: 36 37 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreSharedRuns.h
r2240 r2320 189 189 void runChanged(RenderingRunType runType, RenderingRun* run); 190 190 //inherited 191 virtual void addTechniqueGroup(TechniqueGroup* group){childTechniqueGroups.push_back(group);} 191 void addTechniqueGroup(TechniqueGroup* group){childTechniqueGroups.push_back(group);} 192 void removeTechniqueGroups() 193 { 194 std::vector<TechniqueGroup*>::iterator it = childTechniqueGroups.begin(); 195 std::vector<TechniqueGroup*>::iterator itend = childTechniqueGroups.end(); 196 while(it != itend) 197 { 198 TechniqueGroup* tg = (*it); 199 childTechniqueGroups.erase(it); 200 delete tg; 201 it++; 202 } 203 childTechniqueGroups.clear(); 204 } 192 205 /** 193 206 @brief Sets the given material for all connected renderables. … … 202 215 */ 203 216 void restoreMaterial(); 217 218 void freeAllResources(); 204 219 205 220 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreTechniqueGroup.h
r790 r2320 14 14 { 15 15 public: 16 ~OgreTechniqueGroup(); 16 17 //inherited 17 18 void addRenderTechnique(RenderTechnique* technique); -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreCausticCasterRenderTechnique.h
r2299 r2320 56 56 @brief Destructor. 57 57 */ 58 ~OgreCausticCasterRenderTechnique();58 virtual ~OgreCausticCasterRenderTechnique(); 59 59 /** 60 60 @brief Returns the name of the created caustic cubemap. -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreCausticReceiverRenderTechnique.h
r2299 r2320 57 57 @brief Destructor. 58 58 */ 59 ~OgreCausticReceiverRenderTechnique();59 virtual ~OgreCausticReceiverRenderTechnique(); 60 60 61 61 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreColorCubeMapRenderTechnique.h
r2240 r2320 72 72 @brief Destructor. 73 73 */ 74 ~OgreColorCubeMapRenderTechnique();74 virtual ~OgreColorCubeMapRenderTechnique(); 75 75 76 76 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreConvolvedCubeMapRenderTechnique.h
r2240 r2320 72 72 @brief Destructor. 73 73 */ 74 ~OgreConvolvedCubeMapRenderTechnique();74 virtual ~OgreConvolvedCubeMapRenderTechnique(); 75 75 76 76 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreCubeMapRenderTechnique.h
r2240 r2320 73 73 @brief Destructor. 74 74 */ 75 ~OgreCubeMapRenderTechnique();75 virtual ~OgreCubeMapRenderTechnique(); 76 76 77 77 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreDepthShadowReceiverRenderTechnique.h
r2299 r2320 74 74 @brief Destructor. 75 75 */ 76 ~OgreDepthShadowReceiverRenderTechnique();76 virtual ~OgreDepthShadowReceiverRenderTechnique(); 77 77 78 78 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreDistanceCubeMapRenderTechnique.h
r2240 r2320 72 72 @brief Destructor. 73 73 */ 74 ~OgreDistanceCubeMapRenderTechnique();74 virtual ~OgreDistanceCubeMapRenderTechnique(); 75 75 76 76 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreFireRenderTechnique.h
r2240 r2320 21 21 22 22 FireRenderTarget(); 23 ~FireRenderTarget(); 23 24 }; 24 25 … … 54 55 OgreTechniqueGroup* parentTechniqueGroup 55 56 ); 56 ~OgreFireRenderTechnique();57 virtual ~OgreFireRenderTechnique(); 57 58 58 59 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreHierarchicalParticleSystemTechnique.h
r2240 r2320 58 58 @brief Destructor. 59 59 */ 60 ~OgreHierarchicalParticleSystemTechnique();60 virtual ~OgreHierarchicalParticleSystemTechnique(); 61 61 62 62 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreIllumVolumeRenderTechnique.h
r2302 r2320 52 52 @brief Destructor. 53 53 */ 54 ~OgreIllumVolumeRenderTechnique();54 virtual ~OgreIllumVolumeRenderTechnique(); 55 55 56 56 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgrePathMapRenderTechnique.h
r2299 r2320 41 41 @brief Destructor. 42 42 */ 43 ~OgrePathMapRenderTechnique();43 virtual ~OgrePathMapRenderTechnique(); 44 44 45 45 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderTechniques/OgreSBBRenderTechnique.h
r2240 r2320 38 38 OgreTechniqueGroup* parentTechniqueGroup 39 39 ); 40 ~OgreSBBRenderTechnique();40 virtual ~OgreSBBRenderTechnique(); 41 41 42 42 //inherited -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreCausticCubeMapRenderingRun.h
r2240 r2320 48 48 bool blurMap 49 49 ); 50 51 virtual ~OgreCausticCubeMapRenderingRun(){} 50 52 /** 51 53 @brief returns the name of the resulting caustic cubemap texture … … 77 79 */ 78 80 void setBlurMap(bool blur){blurMap = blur;} 81 82 void freeAllResources(); 79 83 80 84 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreChildPSystemRenderingRun.h
r2251 r2320 46 46 String materialName 47 47 ); 48 49 virtual ~OgreChildPSystemRenderingRun(){} 50 48 51 /** 49 52 @brief returns the name of the resulting photon hit map … … 61 64 */ 62 65 Real getSmallSysRadius(){return sysRad;} 66 67 void freeAllResources(); 63 68 64 69 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreCubeMapRenderingRun.h
r2251 r2320 56 56 bool getMinMax, 57 57 RenderingRunType cubemapRunType); 58 59 virtual ~OgreCubeMapRenderingRun(){} 60 58 61 /** 59 62 @brief returns the name of the resulting color cubemap texture … … 63 66 Vector4 getMax(){return max;} 64 67 Vector4 getMin(){return min;} 68 69 void freeAllResources(); 65 70 66 71 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreDepthShadowMapRenderingRun.h
r2264 r2320 39 39 String materialName); 40 40 41 virtual ~OgreDepthShadowMapRenderingRun(){} 42 43 41 44 /** 42 45 @brief returns the depth shadow map texture created by this run … … 60 63 */ 61 64 Real getLightFarPlane(){return lightFarPlane;} 65 66 void freeAllResources(); 62 67 63 68 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreFocusingMapRenderingRun.h
r2264 r2320 30 30 Matrix4 lightMatrix, 31 31 unsigned int focusingMapSize); 32 33 virtual ~OgreFocusingMapRenderingRun(){} 32 34 /** 33 35 @brief returns the name of the focusing texture … … 48 50 */ 49 51 void setCameraMatrices(const Matrix4 &view, const Matrix4 &projection); 52 53 void freeAllResources(); 50 54 51 55 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreLightVolumeRenderingRun.h
r2264 r2320 38 38 unsigned int textureDepth, 39 39 String materialName); 40 41 virtual ~OgreLightVolumeRenderingRun(){} 42 40 43 /** 41 44 @brief returns the name of the resulting light volume texture … … 68 71 } 69 72 73 void freeAllResources(); 74 70 75 protected: 71 76 /** -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMEntryPointMapRenderingRun.h
r2264 r2320 28 28 */ 29 29 OgrePMEntryPointMapRenderingRun(String name); 30 31 virtual ~OgrePMEntryPointMapRenderingRun(){} 32 30 33 /** 31 34 @brief returns the name of the entry point texture … … 38 41 */ 39 42 String getClusterLengthTextureName(){return clusterLengthTexture->getName();} 43 44 void freeAllResources(); 40 45 41 46 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMWeightComputeRenderingRun.h
r2264 r2320 29 29 */ 30 30 OgrePMWeightComputeRenderingRun(String name, String LightName); 31 32 virtual ~OgrePMWeightComputeRenderingRun(){} 33 31 34 /** 32 35 @brief returns the name of the weight texture … … 35 38 //not used 36 39 float* getWeights(){return weights;} 40 41 void freeAllResources(); 37 42 38 43 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePhaseTextureRenderingRun.h
r2264 r2320 34 34 String materialName); 35 35 36 virtual ~OgrePhaseTextureRenderingRun(){} 37 36 38 /** 37 39 @brief returns the name of thew phase texture created by this run 38 40 */ 39 41 String getPhaseTextureName(){return name;} 42 43 void freeAllResources(); 40 44 41 45 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePhotonMapRenderingRun.h
r2264 r2320 39 39 String materialName, 40 40 bool useDistance); 41 42 virtual ~OgrePhotonMapRenderingRun(){} 43 41 44 /** 42 45 @brief returns the name of the resulting photon hit map texture … … 59 62 //inherited 60 63 void distanceCubeMapUpdated(RenderingRun* run); 64 65 void freeAllResources(); 61 66 62 67 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreReducedCubeMapRenderingRun.h
r2264 r2320 46 46 bool updateAllFace = false); 47 47 48 virtual ~OgreReducedCubeMapRenderingRun(){} 49 48 50 /** 49 51 @brief returns the name of the resulting downsampled color cubemap texture … … 53 55 //inherited 54 56 void colorCubeMapChanged(String& newMapName); 57 58 void freeAllResources(); 55 59 56 60 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreSceneCameraDepthRenderingRun.h
r2264 r2320 31 31 String name, 32 32 Viewport* playerView); 33 34 virtual ~OgreSceneCameraDepthRenderingRun(){} 35 33 36 /** 34 37 @brief returns the name of the camera depth texture … … 36 39 String getDepthTextureName(){return name;} 37 40 41 void freeAllResources(); 38 42 39 43 protected: -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreIlluminationManager.cpp
r2285 r2320 181 181 } 182 182 183 void OgreIlluminationManager::freeAllResources() 184 { 185 std::list<SharedRuns*>::iterator srit = this->sharedRunRoots.begin(); 186 std::list<SharedRuns*>::iterator sritend = this->sharedRunRoots.end(); 187 while(srit != sritend) 188 { 189 (*srit)->freeAllResources(); 190 srit++; 191 } 192 sharedRunRoots.clear(); 193 194 this->sharedRunRoots.clear(); 195 196 this->globalSharedRuns.freeAllResources(); 197 198 std::map<String, OgreSharedRuns*>::iterator lrit = this->perLightRuns.begin(); 199 std::map<String, OgreSharedRuns*>::iterator lritend = this->perLightRuns.end(); 200 201 while(lrit != lritend) 202 { 203 OgreSharedRuns* lightRuns = ((*lrit).second); 204 perLightRuns.erase(lrit); 205 lightRuns->freeAllResources(); 206 delete lightRuns; 207 lrit++; 208 } 209 perLightRuns.clear(); 210 211 std::map<enum GlobalTargetType, GlobalUseRenderTarget*>::iterator grtit = this->globalTargets.begin(); 212 std::map<enum GlobalTargetType, GlobalUseRenderTarget*>::iterator grtitend = this->globalTargets.end(); 213 while(grtit != grtitend) 214 { 215 GlobalUseRenderTarget* rt = (*grtit).second; 216 globalTargets.erase(grtit); 217 delete rt; 218 grtit++; 219 } 220 221 this->pathMapClusters.clear(); 222 this->pathMapEntryPoints.clear(); 223 224 //delete rendertechniquegroups and cloned materials 225 SceneManager::MovableObjectIterator it = Root::getSingleton()._getCurrentSceneManager() 226 ->getMovableObjectIterator("Entity"); 227 while(it.hasMoreElements()) 228 { 229 MovableObject* o = it.getNext(); 230 Entity* e = (Entity*) o; 231 232 if( e->getParentSceneNode() == 0 )//Entity not attached 233 break; 234 235 for(unsigned int s = 0; s < e->getNumSubEntities(); s++) 236 { 237 SubEntity* sube = e->getSubEntity(s); 238 239 Material* mat = sube->getMaterial().getPointer(); 240 241 for(unsigned int t = 0 ; t < mat->getNumTechniques() ; t++) 242 { 243 Technique* tech = mat->getTechnique(t); 244 245 for(unsigned int p = 0; p< tech->getNumPasses(); p++) 246 { 247 Pass* pass = tech->getPass(p); 248 249 std::vector<IllumTechniqueParams*>& techniques = pass->getIllumTechniques(); 250 if( techniques.size() > 0) 251 { 252 OgreTechniqueGroup* tg = (OgreTechniqueGroup*) sube->getRenderTechniqueGroup(); 253 delete tg; 254 sube->setRenderTechniqueGroup(0); 255 } 256 } 257 } 258 259 MaterialManager::getSingleton().remove(mat->getName()); 260 } 261 } 262 263 264 265 266 } 267 183 268 void OgreIlluminationManager::initTechniques(Entity* e) 184 269 { -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreSharedRuns.cpp
r2265 r2320 1 1 #include "..\include\OgreSharedRuns.h" 2 2 #include "OgreIlluminationManager.h" 3 4 void OgreSharedRuns::freeAllResources() 5 { 6 if(child1 != 0)//node 7 { 8 child1->freeAllResources(); 9 child2->freeAllResources(); 10 } 11 else //leaf 12 { 13 std::map<RenderingRunType, RenderingRun*>::iterator it = sharedRuns.begin(); 14 std::map<RenderingRunType, RenderingRun*>::iterator itend = sharedRuns.end(); 15 while(it != itend) 16 { 17 RenderingRun* rr = (*it).second; 18 rr->freeAllResources(); 19 // sharedRuns.erase(it); 20 delete rr->asOgreRenderingRun(); 21 ++it; 22 } 23 sharedRuns.clear(); 24 } 25 } 3 26 4 27 void OgreSharedRuns::runChanged(RenderingRunType runType, RenderingRun* run) -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreTechniqueGroup.cpp
r790 r2320 1 1 #include "OgreTechniqueGroup.h" 2 2 3 4 OgreTechniqueGroup::~OgreTechniqueGroup() 5 { 6 std::vector<OgreRenderTechnique*>::iterator it = renderTechniques.begin(); 7 std::vector<OgreRenderTechnique*>::iterator itend = renderTechniques.end(); 8 while(it != itend) 9 { 10 OgreRenderTechnique* rt = *it; 11 delete rt; 12 it++; 13 } 14 renderTechniques.clear(); 15 } 3 16 4 17 void OgreTechniqueGroup::addRenderTechnique(RenderTechnique* technique) -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticCasterRenderTechnique.cpp
r2265 r2320 56 56 OgreCausticCasterRenderTechnique::~OgreCausticCasterRenderTechnique() 57 57 { 58 58 MaterialManager::getSingleton().remove(causticMapMaterialName); 59 59 } 60 60 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreFireRenderTechnique.cpp
r1055 r2320 68 68 mrt->update(); 69 69 sm->setFindVisibleObjects(true); 70 } 71 72 FireRenderTarget::~FireRenderTarget() 73 { 74 TextureManager::getSingleton().remove("ILLUM_FIRE_COLOR_TEXTURE"); 75 TextureManager::getSingleton().remove("ILLUM_FIRE_HEAT_TEXTURE"); 70 76 } 71 77 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreCausticCubeMapRenderingRun.cpp
r1688 r2320 97 97 return true; 98 98 } 99 100 void OgreCausticCubeMapRenderingRun::freeAllResources() 101 { 102 TextureManager::getSingleton().remove(name); 103 TextureManager::getSingleton().remove(name + "_BLURED"); 104 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 105 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_BLURED" + "_CAMERA"); 106 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreChildParticlesystemRenderingRun.cpp
r2192 r2320 132 132 } 133 133 134 void OgreChildPSystemRenderingRun::freeAllResources() 135 { 136 TextureManager::getSingleton().remove(name); 137 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 138 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreCubeMapRenderingRun.cpp
r2265 r2320 243 243 return true; 244 244 } 245 246 void OgreCubeMapRenderingRun::freeAllResources() 247 { 248 TextureManager::getSingleton().remove(name); 249 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 250 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r2297 r2320 391 391 } 392 392 393 void OgreDepthShadowMapRenderingRun::freeAllResources() 394 { 395 TextureManager::getSingleton().remove(name); 396 TextureManager::getSingleton().remove(blurredname); 397 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 398 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreFocusingMapRenderingRun.cpp
r2265 r2320 124 124 } 125 125 126 void OgreFocusingMapRenderingRun::freeAllResources() 127 { 128 TextureManager::getSingleton().remove(name); 129 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 130 } 126 131 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreLightVolumeRenderingRun.cpp
r1987 r2320 255 255 } 256 256 257 void OgreLightVolumeRenderingRun::freeAllResources() 258 { 259 TextureManager::getSingleton().remove(name); 260 TextureManager::getSingleton().remove(name + "NoBlur"); 261 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 262 } 263 257 264 258 265 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePMEntryPointMapRenderingRun.cpp
r2200 r2320 86 86 } 87 87 88 void OgrePMEntryPointMapRenderingRun::freeAllResources() 89 { 90 TextureManager::getSingleton().remove(name); 91 TextureManager::getSingleton().remove(name + "_CL"); 92 } 88 93 94 95 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePMWeightComputeRenderingRun.cpp
r2249 r2320 170 170 } 171 171 172 void OgrePMWeightComputeRenderingRun::freeAllResources() 173 { 174 TextureManager::getSingleton().remove(name); 175 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 172 176 177 TextureManager::getSingleton().remove(name + "_ALL"); 178 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_ALL" + "_CAMERA"); 179 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePhaseTextureRenderingRun.cpp
r1425 r2320 46 46 renderFullscreenQuad(materialName, rt); 47 47 } 48 49 void OgrePhaseTextureRenderingRun::freeAllResources() 50 { 51 TextureManager::getSingleton().remove(name); 52 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 53 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePhotonMapRenderingRun.cpp
r1722 r2320 152 152 fpParams->setNamedConstant("lastCenter",center); 153 153 } 154 154 155 void OgrePhotonMapRenderingRun::freeAllResources() 156 { 157 TextureManager::getSingleton().remove(name); 158 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 159 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreReducedCubeMapRenderingRun.cpp
r2055 r2320 105 105 106 106 } 107 108 void OgreReducedCubeMapRenderingRun::freeAllResources() 109 { 110 TextureManager::getSingleton().remove(name); 111 Root::getSingleton()._getCurrentSceneManager()->destroyCamera(name + "_CAMERA"); 112 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreSceneCameraDepthRenderingRun.cpp
r2302 r2320 65 65 } 66 66 67 void OgreSceneCameraDepthRenderingRun::freeAllResources() 68 { 69 TextureManager::getSingleton().remove(name); 70 }
Note: See TracChangeset
for help on using the changeset viewer.