3 ms·
SDL does allow you to grab the platform specific window handle (HWND on windows), so you can still do platform specific logic while letting SDL do the boilerpla
by dkersten 9y ago
SDL does allow you to grab the platform specific window handle (HWND on windows), so you can still do platform specific logic while letting SDL do the boilerplate for you.
SDL_SysWMinfo info;
#ifdef _WIN32
if(SDL_GetWindowWMInfo(window, &info)) {
assert(info.subsystem == SDL_SYSWM_WINDOWS);
HWND hwnd = win.window;
HDC hdc = win.hdc;
HINSTANCE hinstance = win.hinstance;
...
}
#endif