diff options
| author | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-08 05:04:41 +0000 |
|---|---|---|
| committer | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-08 05:04:41 +0000 |
| commit | 41fdd962e4fc79f4a77769d95b63f8c1057e4a86 (patch) | |
| tree | 380a2ef201832164dd711d7cf4b507201ebc5796 /Source/GameLoop.cpp | |
| parent | 22b7b35a97f9db73d2f14d1f692a6f8880bcae52 (diff) | |
| download | blackshades-41fdd962e4fc79f4a77769d95b63f8c1057e4a86.tar.gz | |
the final mile
git-svn-id: svn://svn.icculus.org/blackshades/trunk@37 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/GameLoop.cpp')
| -rw-r--r-- | Source/GameLoop.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/GameLoop.cpp b/Source/GameLoop.cpp index bccffe2..ca166f2 100644 --- a/Source/GameLoop.cpp +++ b/Source/GameLoop.cpp @@ -172,6 +172,7 @@ void Game::HandleKeyDown( char theChar ) /********************> DoEvent() <*****/ +#ifdef MAC void Game::DoEvent( EventRecord *event ) { @@ -203,6 +204,7 @@ void Game::DoEvent( EventRecord *event ) } +#endif /********************> EventLoop() <*****/ @@ -210,7 +212,9 @@ void Game::EventLoop( void ) { +#ifdef MAC EventRecord event; +#endif unsigned char theKeyMap[16]; @@ -224,10 +228,13 @@ void Game::EventLoop( void ) { +#ifdef MAC if ( GetNextEvent( everyEvent, &event ) ) DoEvent( &event ); - +#else + STUB_FUNCTION; +#endif start=TimerGetTime(&theTimer); @@ -259,7 +266,7 @@ void Game::EventLoop( void ) #ifdef MAC aglSwapBuffers( gOpenGLContext ); #else - SDL_GL_SwapBuffers( gOpenGLContext ); + SDL_GL_SwapBuffers(); #endif else |
