//---------------------------------------------------------------------------------- // //---------------------------------------------------------------------------------- void EffectImplemented::UnloadResources() { Setting* loader = GetSetting(); TextureLoader* textureLoader = loader->GetTextureLoader(); if( textureLoader != NULL ) { for( int32_t ind = 0; ind < m_ImageCount; ind++ ) { textureLoader->Unload( m_pImages[ind] ); m_pImages[ind] = NULL; } for (int32_t ind = 0; ind < m_normalImageCount; ind++) { textureLoader->Unload(m_normalImages[ind]); m_normalImages[ind] = NULL; } for (int32_t ind = 0; ind < m_distortionImageCount; ind++) { textureLoader->Unload(m_distortionImages[ind]); m_distortionImages[ind] = NULL; } } SoundLoader* soundLoader = loader->GetSoundLoader(); if( soundLoader != NULL ) { for( int32_t ind = 0; ind < m_WaveCount; ind++ ) { soundLoader->Unload( m_pWaves[ind] ); m_pWaves[ind] = NULL; } } { ModelLoader* modelLoader = loader->GetModelLoader(); if( modelLoader != NULL ) { for( int32_t ind = 0; ind < m_modelCount; ind++ ) { modelLoader->Unload( m_pModels[ind] ); m_pModels[ind] = NULL; } } } }