Esempio n. 1
0
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			();
}
Esempio n. 2
0
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();
}
Esempio n. 3
0
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;
}
Esempio n. 4
0
CLensFlare::~CLensFlare()
{
	OnDeviceDestroy				();
}
Esempio n. 5
0
void EDetail::Unload()
{
	CDetail::Unload		();
    Lib.RemoveEditObject(m_pRefs);
    OnDeviceDestroy		();
}
Esempio n. 6
0
CEnvironment::~CEnvironment	()
{
	xr_delete				(PerlinNoise1D);
	OnDeviceDestroy			();
}
Esempio n. 7
0
void CEnvironment::ED_Reload()
{
	OnDeviceDestroy			();
	OnDeviceCreate			();
}
void ESceneToolBase::OnDestroy()
{
    OnDeviceDestroy		();
    RemoveControls		();
}
Esempio n. 9
0
void ESceneCustomMTools::OnDestroy()
{
    OnDeviceDestroy		();
    RemoveControls		();
}
Esempio n. 10
0
void CGlow::ShaderChange(PropValue* value)
{
	OnDeviceDestroy();
}
Esempio n. 11
0
CGlow::~CGlow()
{
	OnDeviceDestroy();
}