ModalBackgroundViewModule::~ModalBackgroundViewModule()
            {
                ASSERT_UI_THREAD

                Eegeo_DELETE(m_pController);
                Eegeo_DELETE(m_pView);
            }
 WorldMenuController::~WorldMenuController()
 {
     Eegeo_DELETE(m_pSelectedArrow);
     Eegeo_DELETE(m_pWorldMenuUpView);
     m_worldMenuItemRepository.RemoveWorldMenuObserver(this);
     for(TViewsByModel::iterator it = m_viewsByModel.begin(); it != m_viewsByModel.end(); ++it)
     {
         WorldMenuItemView* pView = it->second;
         m_uiInteractionObservable.UnRegisterInteractableItem(pView);
     }
     m_viewsByModel.clear();
 }
            SplashScreen::~SplashScreen()
            {
                m_uiInteractionController.UnRegisterInteractableItem(m_pStateButtonLocation);
                m_uiInteractionController.UnRegisterInteractableItem(m_pStateButtonBuilding);
                m_uiInteractionController.UnRegisterInteractableItem(m_pStateButtonPOI);
                m_uiInteractionController.UnRegisterInteractableItem(m_pPlayButton);
                
                Eegeo_DELETE(m_pStateButtonLocation);
                Eegeo_DELETE(m_pStateButtonBuilding);
                Eegeo_DELETE(m_pStateButtonPOI);
                Eegeo_DELETE(m_pPlayButton);

                Eegeo_DELETE m_pSplashScreenModelFactory;

                Eegeo_DELETE m_pSplashScreenModel;
            }
	PinsWithAttachedJavaUIExample::~PinsWithAttachedJavaUIExample()
    {
        Eegeo_DELETE(m_pPinsModule);

        // Delete the icon texture and its layout.
        Eegeo_DELETE m_pPinIconsTexturePageLayout;
        glDeleteTextures(1, &m_pinIconsTexture.textureId);
    }
void ModifiedRenderingExample::Suspend()
{
	Eegeo_DELETE(m_pAlternativeMaterial);
	Eegeo_DELETE(m_pAlternativeShader);
	Eegeo_DELETE(m_pAlternativeLighting);

	// unregister for rendering.
	m_renderableFilters.RemoveRenderableFilter(this);

	// un-register from receiving scene element notifications.
	m_buildingRepository.RemoveObserver(*this);

	//remove it from the pools, and destroy the criteria
	m_buildingFilter.SetFilterCriteria(NULL);

	delete m_pCriteria;
	m_pCriteria = NULL;
}
예제 #6
0
AppRunner::~AppRunner()
{
    bool destroyEGL = true;
    m_displayService.ReleaseDisplay(destroyEGL);

    if(m_pAppHost != NULL)
    {
        Eegeo_DELETE(m_pAppHost);
    }
}
void ModifiedRenderingExample::OnSceneElementRemoved(TMySceneElement& sceneElement)
{
	TSceneElementToRenderablePtrMap::iterator it = m_alternativeRenderables.find(&sceneElement);

	if(it != m_alternativeRenderables.end())
	{
		Eegeo_DELETE(it->second);
		m_alternativeRenderables.erase(it);
	}
}
 void JumpPointController::OnJumpPointRemoved(JumpPoint& jumpPoint)
 {
     Eegeo_ASSERT(HasViewForModel(jumpPoint), "Attempt to remove unknown model from JumpPointController.");
     JumpPointView* pView = GetViewForModel(jumpPoint);
     
     m_viewsByModel.erase(&jumpPoint);
     m_uiInteractionObservable.UnRegisterInteractableItem(pView);
     
     Eegeo_DELETE(pView);
 }
예제 #9
0
PinsExample::~PinsExample()
{
	// Delete the PinsModule and all of its underlying components.
	// N.B. Deleting the PinRepository will delete all Pins it contains.
	// However, responsibility for managing the lifetime of any user data on those Pins is the responsbility
	// of the App.
	Eegeo_DELETE(m_pPinsModule);

	// Delete the icon texture and its layout.
	Eegeo_DELETE m_pPinIconsTexturePageLayout;
	glDeleteTextures(1, &m_pinIconsTexture.textureId);
}
PinOverModelExample::~PinOverModelExample()
{
	// Delete the PinsModule and all of its underlying components.
	// N.B. Deleting the PinRepository will delete all Pins it contains.
	// However, responsibility for managing the lifetime of any user data on those Pins is the responsbility
	// of the App.
	Eegeo_DELETE(m_pPinsModule);

	// Delete the icon texture and its layout.
	Eegeo_DELETE m_pPinIconsTexturePageLayout;
	glDeleteTextures(1, &m_pinIconsTexture.textureId);

	m_renderableFilters.RemoveRenderableFilter(*m_pMyRenderableFilter);

	Eegeo_DELETE m_pMyRenderableFilter;
	Eegeo_DELETE m_pMyModelRenderable;
    Eegeo_DELETE m_pNullMaterial;
}
 TwitterFeedService::~TwitterFeedService()
 {
     if(m_pCurrentAuthRequest != NULL)
     {
         m_pCurrentAuthRequest->Cancel();
     }
     
     if(m_pCurrentTimeLineRequest != NULL)
     {
         m_pCurrentTimeLineRequest->Cancel();
     }
     
     Eegeo_DELETE m_pTimeLineCallback;
     Eegeo_DELETE m_pAuthCallback;
     
     for(std::map<std::string, TweetRepository*>::iterator it = m_repositoryMap.begin(); it != m_repositoryMap.end(); ++it)
     {
         Eegeo_DELETE (*it).second;
     }
     
     m_repositoryMap.clear();
 }