namespace

This commit is contained in:
Glenn Maynard
2006-01-24 03:53:17 +00:00
parent 8ce8c3f1cc
commit 86aebecbdb
4 changed files with 12 additions and 9 deletions
+3 -3
View File
@@ -118,7 +118,7 @@ static void CheckFocus()
}
}
void GameLoop()
void GameLoop::GameLoop()
{
/* People may want to do something else while songs are loading, so do
* this after loading songs. */
@@ -257,13 +257,13 @@ int ConcurrentRenderer::StartRenderThread( void *p )
return 0;
}
void StartConcurrentRendering()
void GameLoop::StartConcurrentRendering()
{
ASSERT( g_pConcurrentRenderer == NULL );
g_pConcurrentRenderer = new ConcurrentRenderer;
}
void FinishConcurrentRendering()
void GameLoop::FinishConcurrentRendering()
{
SAFE_DELETE( g_pConcurrentRenderer );
}
+6 -3
View File
@@ -3,9 +3,12 @@
#ifndef GAME_LOOP_H
#define GAME_LOOP_H
void GameLoop();
void StartConcurrentRendering();
void FinishConcurrentRendering();
namespace GameLoop
{
void GameLoop();
void StartConcurrentRendering();
void FinishConcurrentRendering();
};
#endif
+2 -2
View File
@@ -584,14 +584,14 @@ void ScreenManager::RunConcurrentlyPrepareScreen()
if( !ScreenIsPrepped(sScreenName) )
{
g_bIsConcurrentlyLoading = true;
StartConcurrentRendering();
GameLoop::StartConcurrentRendering();
if( g_setGroupedScreens.find(sScreenName) == g_setGroupedScreens.end() )
DeletePreparedScreens();
PrepareScreen( sScreenName );
FinishConcurrentRendering();
GameLoop::FinishConcurrentRendering();
g_bIsConcurrentlyLoading = false;
LOG->Trace( "Concurrent prepare of %s finished", sScreenName.c_str() );
+1 -1
View File
@@ -1084,7 +1084,7 @@ int main(int argc, char* argv[])
NSMAN->DisplayStartupStatus(); // If we're using networking show what happened
/* Run the main loop. */
GameLoop();
GameLoop::GameLoop();
/* If we ended mid-game, finish up. */
GAMESTATE->EndGame();