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

9
src/bgfx.cpp Normal file → Executable file
View File

@@ -40,7 +40,14 @@ namespace bgfx
{
g_bgfxHwnd = _hwnd;
}
#endif // BX_PLATFORM_WINDOWS
#elif BX_PLATFORM_OSX
void* g_bgfxNSWindow = NULL;
void osxSetNSWindow(void* _nsWindow)
{
g_bgfxNSWindow = _nsWindow;
}
#endif // BX_PLATFORM_*
struct CallbackStub : public CallbackI
{