mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-20 13:48:27 +08:00
moving ifdefs into implementation
This commit is contained in:
parent
7ce2d07153
commit
ff4d4b1acb
@ -114,9 +114,7 @@ namespace Blah
|
|||||||
void gl_context_make_current(void* context);
|
void gl_context_make_current(void* context);
|
||||||
void gl_context_destroy(void* context);
|
void gl_context_destroy(void* context);
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
// D3D11 Methods
|
// D3D11 Methods
|
||||||
void* d3d11_get_hwnd();
|
void* d3d11_get_hwnd();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -649,13 +649,16 @@ void PlatformBackend::gl_context_destroy(void* context)
|
|||||||
SDL_GL_DeleteContext(context);
|
SDL_GL_DeleteContext(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
void* PlatformBackend::d3d11_get_hwnd()
|
void* PlatformBackend::d3d11_get_hwnd()
|
||||||
{
|
{
|
||||||
|
#if _WIN32
|
||||||
SDL_SysWMinfo info;
|
SDL_SysWMinfo info;
|
||||||
SDL_VERSION(&info.version);
|
SDL_VERSION(&info.version);
|
||||||
SDL_GetWindowWMInfo(window, &info);
|
SDL_GetWindowWMInfo(window, &info);
|
||||||
return info.info.win.window;
|
return info.info.win.window;
|
||||||
}
|
#else
|
||||||
|
return nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#endif // BLAH_USE_SDL2
|
#endif // BLAH_USE_SDL2
|
||||||
|
Loading…
Reference in New Issue
Block a user