Added OSX entry point and OpenGL context

Added OSX entry point and OpenGL context
This commit is contained in:
Garett Bass
2013-01-15 20:37:07 -08:00
parent 4412f0f1d0
commit 2bbcb92109
22 changed files with 505 additions and 50 deletions

2
examples/common/dbg.cpp Normal file → Executable file
View File

@@ -28,7 +28,7 @@ void dbgOutput(const char* _out)
{
#if BX_PLATFORM_WINDOWS || BX_PLATFORM_XBOX360
OutputDebugStringA(_out);
#elif BX_PLATFORM_NACL || BX_PLATFORM_LINUX
#elif BX_PLATFORM_NACL || BX_PLATFORM_LINUX || BX_PLATFORM_OSX
fputs(_out, stderr);
fflush(stderr);
#endif // BX_PLATFORM_