void CTheme::ReadTitleWorld()
{
if(m_pTitleWorld == NULL)
{
m_pTitleWorld = new CWorld;
if(m_pTitleWorld != NULL)
{
if(!m_bLoadTerrainScript)
m_bLoadTerrainScript = prj.m_terrainMng.LoadScript("terrain.inc");
if(m_bLoadTerrainScript)
{
if(m_pTitleWorld->InitDeviceObjects( m_pd3dDevice ) == S_OK)
{
if(m_pTitleWorld->OpenWorld( MakePath( DIR_WORLD, "WdArena" ), TRUE ))
{
D3DXVECTOR3 vecWorld(128.0f, 128.0f, 128.0f);
m_pTitleWorld->ReadWorld(vecWorld);
D3DXVECTOR3 vecPos(149.0f, 105.0f, 170.0f);
D3DXVECTOR3 vecLookat(213.0f, 116.0f, 184.0f);
CCamera camera;
camera.SetPos(vecPos);
camera.m_vLookAt = vecLookat;
m_pTitleWorld->SetCamera(&camera);
/*
m_pFlyffLogo = CWndBase::m_textureMng.AddTexture( m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "flyfftitletest.bmp" ) ), 0xffff00ff );
m_pGameGrade = CWndBase::m_textureMng.AddTexture( m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "gamegradetest.bmp" ) ), 0xffff00ff );
m_pAeonLogo = CWndBase::m_textureMng.AddTexture( m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "aeonsoftlogotest.bmp" ) ), 0xffff00ff );
m_pGalaLogo = CWndBase::m_textureMng.AddTexture( m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "galalogotest.bmp" ) ), 0xffff00ff );
*/
m_bRenderTitleWorld = TRUE;
}
else
SAFE_DELETE(m_pTitleWorld);
}
}
}
}
}
void CTheme:

estoryTitleWorld()
{
if(m_pTitleWorld != NULL)
{
m_pTitleWorld->InvalidateDeviceObjects();
m_pTitleWorld->DeleteDeviceObjects();
SAFE_DELETE(m_pTitleWorld);
}
m_dwTexturAlpha1 = 0;
m_dwTexturAlpha2 = 0;
}