Exemplo n.º 1
0
void UI_Main::shutdownRocket( void )
{
	int i;

	for( i = 0; i < UI_NUM_CONTEXTS; i++ ) {
		UI_Navigation &navigation = navigations[i];
		for( UI_Navigation::iterator it = navigation.begin(); it != navigation.end(); ++it ) {
			// clear the navigation stack
			(*it)->popAllDocuments();
			(*it)->getCache()->clearCaches();
		}
	}

	// forget about all previously registed shaders
	rocketModule->clearShaderCache();

	destroyDataSources();
	destroyFormatters();

	for( i = 0; i < UI_NUM_CONTEXTS; i++ ) {
		UI_Navigation &navigation = navigations[i];
		while( !navigation.empty() ) {
			NavigationStack *stack = navigation.front();
			__SAFE_DELETE_NULLIFY( stack );
			navigation.pop_front();
		}
	}

	__SAFE_DELETE_NULLIFY( rocketModule );
}
Exemplo n.º 2
0
void UI_Main::shutdownRocket( void )
{
	// clear the navigation stack
	navigator->popAllDocuments();
	// clear the navigation stack from previous installment
	navigator->getCache()->clearCaches();

	destroyDataSources();
	destroyFormatters();

	__SAFE_DELETE_NULLIFY( navigator );

	__SAFE_DELETE_NULLIFY( rocketModule );
}