CEnvironment::~CEnvironment () { xr_delete (PerlinNoise1D); OnDeviceDestroy (); VERIFY (m_ambients_config); CInifile::Destroy (m_ambients_config); m_ambients_config = 0; VERIFY (m_sound_channels_config); CInifile::Destroy (m_sound_channels_config); m_sound_channels_config = 0; VERIFY (m_effects_config); CInifile::Destroy (m_effects_config); m_effects_config = 0; VERIFY (m_suns_config); CInifile::Destroy (m_suns_config); m_suns_config = 0; VERIFY (m_thunderbolt_collections_config); CInifile::Destroy (m_thunderbolt_collections_config); m_thunderbolt_collections_config = 0; VERIFY (m_thunderbolts_config); CInifile::Destroy (m_thunderbolts_config); m_thunderbolts_config = 0; destroy_mixer (); }
void CEditableObject::TranslateToWorld(const Fmatrix& parent) { EditMeshIt m = m_Meshes.begin(); for(;m!=m_Meshes.end();m++) (*m)->Transform( parent ); #ifdef _EDITOR OnDeviceDestroy(); #endif UpdateBox(); }
void CEditableObject::ClearGeometry () { #ifdef _EDITOR OnDeviceDestroy(); #endif if (!m_Meshes.empty()) for(EditMeshIt m=m_Meshes.begin(); m!=m_Meshes.end();m++)xr_delete(*m); if (!m_Surfaces.empty()) for(SurfaceIt s_it=m_Surfaces.begin(); s_it!=m_Surfaces.end(); s_it++) xr_delete(*s_it); m_Meshes.clear(); m_Surfaces.clear(); #ifdef _EDITOR // bones for(BoneIt b_it=m_Bones.begin(); b_it!=m_Bones.end();b_it++)xr_delete(*b_it); m_Bones.clear(); // skeletal motions for(SMotionIt s_it=m_SMotions.begin(); s_it!=m_SMotions.end();s_it++) xr_delete(*s_it); m_SMotions.clear(); #endif m_ActiveSMotion = 0; }
CLensFlare::~CLensFlare() { OnDeviceDestroy (); }
void EDetail::Unload() { CDetail::Unload (); Lib.RemoveEditObject(m_pRefs); OnDeviceDestroy (); }
CEnvironment::~CEnvironment () { xr_delete (PerlinNoise1D); OnDeviceDestroy (); }
void CEnvironment::ED_Reload() { OnDeviceDestroy (); OnDeviceCreate (); }
void ESceneToolBase::OnDestroy() { OnDeviceDestroy (); RemoveControls (); }
void ESceneCustomMTools::OnDestroy() { OnDeviceDestroy (); RemoveControls (); }
void CGlow::ShaderChange(PropValue* value) { OnDeviceDestroy(); }
CGlow::~CGlow() { OnDeviceDestroy(); }