Void EngineTests::OnCleanup()
{
    // Debug
    m_pDebugTextFormat->UnBind();
    Delete( m_pDebugTextFormat );
    m_pDebugTextFormat = NULL;

    m_pDebugTextBrush->UnBind();
    Delete( m_pDebugTextBrush );
    m_pDebugTextBrush = NULL;

    WorldFn->ToggleDebugDraw( false );

    // Cleanup everything
    GUIFn->SetBackboardModel( NULL );
    Delete( m_pBackboardModel );
    m_pBackboardModel = NULL;

    _DestroyWorld();
    _DestroyInstancedGeometry();
    _DestroyEffects();
    _DestroyActions();
}
Exemplo n.º 2
0
Void RPGGame::OnCleanup()
{
	// Debug
    m_pDebugTextFormat->UnBind();
    Delete( m_pDebugTextFormat );
    m_pDebugTextFormat = NULL;

    m_pDebugTextBrush->UnBind();
    Delete( m_pDebugTextBrush );
    m_pDebugTextBrush = NULL;

    WorldFn->ToggleDebugDraw( false );

    // Cleanup everything
    InterfaceFn->Cleanup();
    InterfaceManager::Destroy();

    _DestroyWorld();
    GameplayFn->Cleanup();
    GameplayManager::Destroy();

    AnimationFn->Cleanup();
    AnimationManager::Destroy();

    EntityFn->Cleanup();
    EntityManager::Destroy();
    
    _DestroyInstancedGeometry();
    _DestroyTextures();
    _DestroyBitmaps();
    _DestroyLightsMaterials();
    GraphicsFn->Cleanup();
    GraphicsManager::Destroy();
    
    _DestroyActions();
}